|
Hello, I have recently had a a problem with my engine where Mario jumps on a goomba. I am not using the collision event, I am using the step event.
| CODE | if place_meeting(x,y+1,obj_goomba) and vspeed > obj_goomba.vspeed { vspeed = -6 } else { if place_meeting(x,y,obj_goomba) and !vspeed > obj_goomba.vspeed { show_message('') exit; }} |
If mario is high enough above the goomba and lands on him, then bounce. But if he runs into the goomba, and he is not high enough, then show message.
I know I have to change the coordinates in the place meeting, but I dont know what to change it to. Thanks for the help!
--------------------
|