I want my actor to jump higher and higher!

So I'm making this project that requires my actor to jump at a base height, fall to the ground and immediately without me clicking have him jump again but higher. I need a lot of help this being my first project.

Answers

  • Luke20wLuke20w Member, PRO Posts: 50

    First, you are going to need to make two actors:
    Jumper
    Ground

    Then, make an integer attribute in Jumper called Bounces

    Finally, make these:

    (This is for the gravity if to want Jumper to fall down) Accelerate 270˚ 500 (you can change this number to whatever gravity you want)

    Collide with actor Ground

    When: Mouse button is down - Then: change attribute self.Motion.LinearVolocity.Y to 100 (you can change this number based on the hight you want to jump)

    When: Overlaps or collides with actor Ground - Then: change attribute self.Bounces to self.Bounces+1 and change attribute self.Motion.LinearVolocity.Y to 100 + self.Bounces x 10 (again, you can change this number if you want)

    That should work for you

    I hope this helps!

Sign In or Register to comment.