Y
Yvalson
Guest
so i'm using this script to check for the Obj_Stone.
if (keyboard_check_pressed(vk_up) && Jumping == false){
physics_apply_impulse(x, y, 0, -500)
Jumping = true
show_debug_message("true")
}
if (place_meeting(x,y+1, Obj_Stone) && !place_meeting(x+1,y, Obj_Stone)){
Jumping = false
show_debug_message("false")
}
if (place_meeting(x,y+1, Obj_Moving_Stone) && !place_meeting(x+1,y, Obj_Moving_Stone)){
Jumping = false
}
however it only detects it when place_meeting(x,y+2 or higher and I don't get why
atm Obj_Stone and the player have the same depth.
I am using physics as you can see and my player Obj has a collision with Obj_Stone but its empty
if (keyboard_check_pressed(vk_up) && Jumping == false){
physics_apply_impulse(x, y, 0, -500)
Jumping = true
show_debug_message("true")
}
if (place_meeting(x,y+1, Obj_Stone) && !place_meeting(x+1,y, Obj_Stone)){
Jumping = false
show_debug_message("false")
}
if (place_meeting(x,y+1, Obj_Moving_Stone) && !place_meeting(x+1,y, Obj_Moving_Stone)){
Jumping = false
}
however it only detects it when place_meeting(x,y+2 or higher and I don't get why
atm Obj_Stone and the player have the same depth.
I am using physics as you can see and my player Obj has a collision with Obj_Stone but its empty