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

Comments for Scamper Ghosts

Return to Scamper Ghosts

A new version of this scenario was uploaded on Mon Nov 01 00:23:30 UTC 2010 + Still on development
A new version of this scenario was uploaded on Wed Nov 10 03:19:41 UTC 2010
A new version of this scenario was uploaded on Sat Nov 13 05:09:42 UTC 2010
A new version of this scenario was uploaded on Sun Nov 14 00:54:15 UTC 2010
A new version of this scenario was uploaded on Sun Nov 14 00:56:20 UTC 2010
DonaldDuckDonaldDuck

2010/11/14

He gets stuck on walls, also in the air when he does his little 10 pixel jump. Here's a very basic way to make your character turn when he's moving. Assuming you have two images, imageOne and imageTwo. GreenfootImage RightOne = new GreenfootImage("imageOne.png"); GreenfootImage RightTwo = new GreenfootImage("imageTwo.png"); GreenfootImage LeftOne = new GreenfootImage("imageOne.png"); GreenfootImage LeftTwo = new GreenfootImage("imageTwo.png"); public character() { /** * Mirror the images for moving right horizontally. **/ RightOne.mirrorHorizontally(); RightTwo.mirrorHorizontally(); } public void move() { if(Greenfoot.isKeyDown("right")) { setImage(RightOne); setLocation(getX()+2, getY()) setImage(RightTwo); } if(Greenfoot.isKeyDown("left")) { setImage(LeftOne); setLocation(getX()-2, getY()); setImage(LeftTwo); } } That's reallly basic but it should work.
A new version of this scenario was uploaded on Sun Nov 14 17:28:12 UTC 2010
A new version of this scenario was uploaded on Sun Nov 14 17:33:53 UTC 2010
A new version of this scenario was uploaded on Sun Nov 14 21:17:47 UTC 2010
MTKMTK

2010/11/14

You might like to watch the "Platform games: running, falling and jumping" video tutorial here: http://www.greenfoot.org/doc/videos.html
A new version of this scenario was uploaded on Mon Nov 15 00:23:12 UTC 2010
A new version of this scenario was uploaded on Mon Nov 15 00:46:55 UTC 2010
A new version of this scenario was uploaded on Mon Nov 15 00:56:46 UTC 2010
A new version of this scenario was uploaded on Mon Nov 15 01:51:51 UTC 2010
A new version of this scenario was uploaded on Mon Nov 15 02:05:14 UTC 2010
DonaldDuckDonaldDuck

2010/11/15

Getting better each time. Now you just need to slow down the jump and make him jump higher.
A new version of this scenario was uploaded on Mon Nov 15 03:33:35 UTC 2010
A new version of this scenario was uploaded on Mon Nov 15 03:52:48 UTC 2010
A new version of this scenario was uploaded on Mon Nov 15 03:55:53 UTC 2010
A new version of this scenario was uploaded on Tue Nov 16 00:23:19 UTC 2010
A new version of this scenario was uploaded on Tue Nov 16 00:30:56 UTC 2010
A new version of this scenario was uploaded on Tue Nov 16 01:37:19 UTC 2010
A new version of this scenario was uploaded on Tue Nov 16 01:42:44 UTC 2010
A new version of this scenario was uploaded on Tue Nov 16 01:51:09 UTC 2010
A new version of this scenario was uploaded on Tue Nov 16 01:58:00 UTC 2010
A new version of this scenario was uploaded on Tue Nov 16 02:04:20 UTC 2010
A new version of this scenario was uploaded on Thu Nov 18 04:20:24 UTC 2010
A new version of this scenario was uploaded on Thu Nov 18 04:43:27 UTC 2010
A new version of this scenario was uploaded on Sat Nov 20 03:35:05 UTC 2010
A new version of this scenario was uploaded on Sat Nov 20 04:28:15 UTC 2010
A new version of this scenario was uploaded on Sat Nov 20 04:38:24 UTC 2010
A new version of this scenario was uploaded on Sat Nov 20 04:45:52 UTC 2010
A new version of this scenario was uploaded on Sat Nov 20 04:52:48 UTC 2010
A new version of this scenario was uploaded on Sun Nov 21 01:24:57 UTC 2010
A new version of this scenario was uploaded on Sun Nov 21 04:25:01 UTC 2010
A new version of this scenario was uploaded on Sun Nov 21 06:16:43 UTC 2010
A new version of this scenario was uploaded on Sun Nov 21 18:20:33 UTC 2010
A new version of this scenario was uploaded on Sun Nov 21 20:07:43 UTC 2010
A new version of this scenario was uploaded on Sun Nov 21 21:10:36 UTC 2010
A new version of this scenario was uploaded on Sun Nov 21 21:21:22 UTC 2010