E e309xerz0wpw Member Dec 10, 2020 #1 GML: var target = position_meeting(x+1,y+1,object_name) instance_destroy(target); this isnt destroying the instance @ position_meeting(x+1,y+1) ive tried non-temp variable, still not working how do i set a variable 2 a specific object @ a specific location reliably?
GML: var target = position_meeting(x+1,y+1,object_name) instance_destroy(target); this isnt destroying the instance @ position_meeting(x+1,y+1) ive tried non-temp variable, still not working how do i set a variable 2 a specific object @ a specific location reliably?
TheouAegis Member Dec 10, 2020 #2 Use instance_position() to retrieve the ID; position_meeting() is a boolean.
FrostyCat Redemption Seeker Dec 10, 2020 #3 See: What's the Difference: Collision Functions (Meeting vs. Instance, Troubleshooting Tip #2)