Prevent bounce higher and higher
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?
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...
I made this demo a long time ago. Hopefully it helps. Extremely simple when you know how to do it.
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...