Actor Jump and Fall? or Jump but only so high
TyDietrich
Member Posts: 45
I want my actor to jump and fall like in the Platformer Template. I tried to just copy the same rules that are in the template, but that isn't working and I'm not sure what I'm missing. I have the actor jumping and moving up when i hit jump but it doesn't stop moving up until i release the jump button. So how to I make the actor jump to only a certain height?
Comments
Since we can't see the template in question, we'll have to see the jump rules you are using from it to have an idea. The basic jump model, however, is to have a Change attribute on Self.MotionY to activate on the pushing of the jump button, and a constant acceleration downwards(angle 270) to stand in for gravity. After that its just a matter of tweaking those two numbers till you get both the height and the rise and fall speed you want.
You might find this tutorial helpful:
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page