Please help!! how to jump?
gabrielyee
Member Posts: 2
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.
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
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
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS