M
MintyPretzel126
Guest
As the title says, I need to create a Donkey Kong style gravity system. I believe I would use an alarm to stay 1 second in the air before falling. As for falling without moving through the air, I'm not sure. Also on the topic of Donkey Kong, how would I make the player restart the room when falling from a certain height? Thanks a bunch, even if you just read this thread.
EDIT: So what I think I need to do is combine the code for moving across grass with stone. The code I have for it is this:
if(place_meeting(x,y + 1,OBJ_Grass)){
gravity = 0;
}
else{
gravity = 0.25;
}
I'm not sure how to add OBJ_Stone to it so one doesn't get stuck in the other. Also since I set the speed to 0 when I release a movement key, the falling slows down when I mash the Left and Right keys.
EDIT: So what I think I need to do is combine the code for moving across grass with stone. The code I have for it is this:
if(place_meeting(x,y + 1,OBJ_Grass)){
gravity = 0;
}
else{
gravity = 0.25;
}
I'm not sure how to add OBJ_Stone to it so one doesn't get stuck in the other. Also since I set the speed to 0 when I release a movement key, the falling slows down when I mash the Left and Right keys.
Last edited by a moderator: