This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
PRprogram123
wrote ...
2011/12/19
Question: How do you jump and fall?
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
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
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.
X