How do I change jump speed? - FastLoop Custom Platform Movement by DavidN
Hello again everyone.
I wanted to build my own platforming engine so I got started here:
http://www.clickteam.com/clickteam-blog?p=custom-platform-movement
Everything is going well, except I want to be able to change the speed of how fast the player moves in air when they jump and then fall.
As of now, the player moves up 1 pixel at a time, and moves down 1 pixel at a time:
On loop "Grav"
"Grav_" of (player) < 0:
- Set Y position of Player to Y of Player - 1
On loop "Grav"
"Grav_" of (player) > 0:
- Set Y position of Player to Y of Player + 1
The player moves up and down too fast, so I want make the player move up 0.5 pixels at a time, and move down 0.5 pixels at a time.
How would I go about doing this?