NoseDevilEugen
Member
Hello there.
Basically, im making platformer and trying to make one-way platforms. GMS 1.4
Not gonna bother you with a whole thing, my actual question is:
You have two instances: instance A (player-object), two instances of B (wall\floor\celling objects)
Let's say you check if instance A collides with any of B (with instance_place(x, y+1, obj_floor))
And in reality, instance A touches both of them (for example, standing on them both).
And, of course, instance_place returns only one ID.
Can you, with some black magic, manually set, which one is gonna be returned?
For example, if in this case i want to get only ID of left object.
I know about (instance_place_list) but not sure if i can manage such list as i want to.
Can i get ID of instance_place(x, y+1, obj_floor) ignoring instance_place(x, y, obj_floor)?
Basically, im making platformer and trying to make one-way platforms. GMS 1.4
Not gonna bother you with a whole thing, my actual question is:
You have two instances: instance A (player-object), two instances of B (wall\floor\celling objects)
Let's say you check if instance A collides with any of B (with instance_place(x, y+1, obj_floor))
And in reality, instance A touches both of them (for example, standing on them both).
And, of course, instance_place returns only one ID.
Can you, with some black magic, manually set, which one is gonna be returned?
For example, if in this case i want to get only ID of left object.
I know about (instance_place_list) but not sure if i can manage such list as i want to.
Can i get ID of instance_place(x, y+1, obj_floor) ignoring instance_place(x, y, obj_floor)?
Last edited: