Jumping issue...

GnomerGnomer Member Posts: 292
edited November -1 in Working with GS (Mac)
I have tried everything posted on the forum, but doesnt work for some reason,

How can i make my actor jump. I have a button and the restitution of the ground and the actor is 0.

Thanks.

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    You need accelerate down (lets say 100) on your character and then a simple rule if jump is true (do this via the jump button, if touch is pressed jump=true) then in the character do a rule if jump is true change attribute self.motion.linear.y to 200...change the numbers to suit.

    You will need an integer if you want to control the amount of jumps.

    Darren.

    image
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    well if you want to jump when u press a button

    make a attirubte called jump and set it to 0

    in you jump button have a rule when touch is pressed change attribute jump to 1, then in the otherwise section of that rule put a change attribute behavior changing attribute jump to 0

    then in whatver actor you want to jump have a rule when attirbute jump=1 change attribute self motion linear velocity Y to 300

    make sure u have sme accelerate down or gravity
  • GnomerGnomer Member Posts: 292
    thanks
Sign In or Register to comment.