S
sabixi
Guest
I'm trying to access the y position of an object the player is colliding with, this code was me testing things, so I'm just trying to get the id of the collided object here:
if place_meeting(x, y+vspeed_, o_slope_r){
show_debug_message(other.id);
}
For some reason, "other" is the player object, rather than the object I am checking the collision with, but it still detects the collision and prints the message.
I can get the correct id using instance_place (I know I could then use the id to access the y position, but I want to know why this isn't working)
Thank you
if place_meeting(x, y+vspeed_, o_slope_r){
show_debug_message(other.id);
}
For some reason, "other" is the player object, rather than the object I am checking the collision with, but it still detects the collision and prints the message.
I can get the correct id using instance_place (I know I could then use the id to access the y position, but I want to know why this isn't working)
Thank you