• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

doesn't detect place_meeting

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
 
Y

Yvalson

Guest
fixed it
change keyboard_check_pressed to keyboard_check if you dont want doublejump like me
 
Top