Please help!! how to jump?

Hi, im new here. i want to practise to make a super mario template game.

this is my project

scene : Gravity Y is 100
floor and actor bounciness : 0

(actor)
[Colision ]
[actor of type : Floor ]
[do : Colide : Actor of type Floor ]

[Key ]
[when "space" is down ]
[do : change attribute : set self.motion.linervelocity.Y to 100 ]

[Key ]
[when "space" is down ]
[do : change attribute : set self.motion.linervelocity.Y to -100 ]

[Key
[when "Left" is down
[do : move to 0' relative to actor in a addictive way : at speed of 100

[Key
[when "right" is down
[do : move to 180' relative to actor in a addictive way : at speed of 100

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
it doesnt work well like super mario. Plus, i just want to jump once before it land. but in this project, why i can jump many times. and when i press left, the actor will walk in the sky, not in land. im sorry, my english is poor, i cant speak to well. i need help on basic things.

appreciate to those who are willing to help me go through this.

Comments

  • gabrielyeegabrielyee Member Posts: 2
    i mean i cant jump while pressing left or right button.
  • saif_shammarisaif_shammari Member Posts: 128
    i just want to jump once before it land. but in this project, why i can jump many times.

    do this

    [Key ]
    [when "space" is down ] (((((((----and when actor collide with floor---))))))
    [do : change attribute : set self.motion.linervelocity.Y to 100 ]

    i think it well jump just one jump

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Bend at the knees and push up with your legs. Presto.
  • SocksSocks London, UK.Member Posts: 12,822
    Bend at the knees and push up with your legs. Presto.
    . . . . but don't forget to leave the ground, if you don't leave the ground it's technically just a weird squat.

    ;)
Sign In or Register to comment.