L
lord_berto
Guest
how does game maker handle the collision function instance_position()?
all my game objects have a parent called obj_solid ( including players and walls etc )
im trying to code a function to allow anything to push against each other.
in the step event of object A i have :
if instance_position(x,y,obj_solid)
{
/// code for pushing/moving out of way occurs
}
but what if there are multiple instances touching object A? which object does game maker ultimately
choose as input for instance_position collision check?
all my game objects have a parent called obj_solid ( including players and walls etc )
im trying to code a function to allow anything to push against each other.
in the step event of object A i have :
if instance_position(x,y,obj_solid)
{
/// code for pushing/moving out of way occurs
}
but what if there are multiple instances touching object A? which object does game maker ultimately
choose as input for instance_position collision check?