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?

Comments

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    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...

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273

    I made this demo a long time ago. Hopefully it helps. Extremely simple when you know how to do it.

  • SocksSocks London, UK.Member Posts: 12,822
    edited March 2015

    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

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    For the fun of it I did one using the physics engine and the bounciness values...

Sign In or Register to comment.