This site requires JavaScript, please enable it in your browser!
Greenfoot back
PRprogram123
PRprogram123 wrote ...

2011/12/19

Question: How do you jump and fall?

PRprogram123 PRprogram123

2011/12/19

#
I am thinking of a game a bit like mario, but with a twist. first i need to know how to make actors jump and fall, do you use the "getX(),getY()" method?
DMCGames DMCGames

2011/12/19

#
You could use the support class "Mover" Which is available Here It includes methods like jump(), moveright(), moveleft(), fall() and more basic needs.
danpost danpost

2011/12/19

#
There are also a pair of short videos in the 'Documentation' area of Greenfoot that explain 'Running, Jumping & Falling (Part ? of 2)'.
You need to login to post a reply.