C
camscottbryce
Guest
I've done a bit of searching because I thought this topic was on the old GMC but alas- I've been working with GM for a long time but still am pretty garbage when it comes to programming (including drag and drop).
All I want to know is how to add acceleration to the player's movement. So that once you hold down "right," the player starts accelerating right, and once you release right, the player slows down and stops, similar to the movement in Super Mario Bros. or Super Mario Bros. 3. I've tried doing this on my own but I have issues with collision and with moving in the opposite direction.
EDIT: Another thing is I'm looking to do that style of "jumping" where holding down space causes you to jump higher (at a non static rate), meaning that I want to be able to tap space to do a small jump, hold space to do a high jump, and be able to release space at any time to do a low-medium-high jump. Is there an easy way of implementing this? I've tried a couple of things, between keep gravity lower when space is held or adding to the vspeed when the key is held down but both of those ended up being pretty wonky and it feels like there's another solution.
As stated earlier, I'm complete garbage when it comes to programming, so please be patient and try to explain things as you would to a beginner. I know that's a lot to ask but I'm just trying to learn, thanks.
All I want to know is how to add acceleration to the player's movement. So that once you hold down "right," the player starts accelerating right, and once you release right, the player slows down and stops, similar to the movement in Super Mario Bros. or Super Mario Bros. 3. I've tried doing this on my own but I have issues with collision and with moving in the opposite direction.
EDIT: Another thing is I'm looking to do that style of "jumping" where holding down space causes you to jump higher (at a non static rate), meaning that I want to be able to tap space to do a small jump, hold space to do a high jump, and be able to release space at any time to do a low-medium-high jump. Is there an easy way of implementing this? I've tried a couple of things, between keep gravity lower when space is held or adding to the vspeed when the key is held down but both of those ended up being pretty wonky and it feels like there's another solution.
As stated earlier, I'm complete garbage when it comes to programming, so please be patient and try to explain things as you would to a beginner. I know that's a lot to ask but I'm just trying to learn, thanks.
Last edited by a moderator: