Prevent bounce higher and higher
ErikAuranaune
Member Posts: 35
Hello.
How can i make an player/actor bounce the same height all the time?
Now when i use the normal "collide" function, it bounces higher and higher..
Any suggestions?
Comments
Try playing with the bounce setting in the physics settings of both actors that are colliding. It will take some tweaking, but typically a bounce value of 1 or higher will increase the bounce height... try something like .9 or less. It does take some playing with...
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
I made this demo a long time ago. Hopefully it helps. Extremely simple when you know how to do it.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
To add to what's already been said here's another method:
Constrain self.position.Y to . . . .
A*sin( self.Time *B%180)+C+( self.Size.Height /2)
A=Height
B=Speed
C=Floor
Demo attached
For the fun of it I did one using the physics engine and the bounciness values...
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page