Jump to content
A 2021 backup has been restored. Forums are closed and work in progress. Join our Discord server for more updates! ×
SoaH City Message Board

(RESOLVED)[GM] Problems with place system


thevaleev

Recommended Posts

I have problems with place system(for racing platformer), that works like that:

/* instance_range_count(obj) */

//Arguments
var object, radius;
object = argument0;

//Loop through instances
var inst, i, maxinsts, total;
maxinsts = instance_number(object);
total = 0;
for (i=0; i<maxinsts; i+=1) {
inst = instance_find(object, i);
if (inst.x>x){
total += 1;
}
}

//Done
return total+1; //plus one to make it 1st and not 0st[/CODE]

Sometimes players got same positions.

Tell me, please, what I can do in this case to move

position of the player (which got same position later) down?

[b]UPDATED:[/b]

Sorry guys, problem is resolved, thanks to NeKit for help (https://www.facebook.com/fakekit). But if you still have offers to resolve it, you can write it.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...