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

Report as inappropriate.

MrCohen
MrCohen presents ...

2018/11/19

AnimatedCharacter

This scenario uses System.nanoTime to produce smooth, time-based movement and animation (rather than act-based). It also uses images created by Spritefoot to demonstrate how you can use multiple arrays of images to smoothly manage animation.

Instructions:
- Hold SHIFT to Run
- Press B and N to switch costumes
- Arrow keys to move
- Click mouse to try click-to-move functionality

609 views / 11 in the last 7 days

1 vote | 0 in the last 7 days

Tags: with-source animation sprite

open in greenfoot
Your browser does not support the canvas tag.
A new version of this scenario was uploaded on 2018-11-19 14:00:01 UTC Now more modular - moved all functionality into an abstrace superclass for easy inheritance and use. Includes a Player to demonstrate how it works. Please note that this is intended to be used with the output from the SpriteFoot sprite slicer, which you can find on this site by looking at my projects. ...Work continues on this class...
A new version of this scenario was uploaded on 2018-11-19 18:08:39 UTC Cleanup and bug fixes
A new version of this scenario was uploaded on 2018-11-19 19:45:26 UTC Now with an "Enemy" to demonstrate automated movement of an AnimatedCharacter
A new version of this scenario was uploaded on 2018-11-20 16:40:02 UTC Now supports Death frames. In this test scenario, if a player touches one of the Enemies, the Enemy will "die" by showing a slow death animation and then removing itself from the World.
A new version of this scenario was uploaded on 2018-11-21 17:42:46 UTC Now supports setLocation used as normal.
Heet_PatelHeet_Patel

2018/11/23

THIS IS GR8!!!!! GR8 GAME. ADD MORE OBJECTS IF YOU CAN. MAKE GAME MORE INTERESTING
A new version of this scenario was uploaded on 2019-05-23 17:49:35 UTC

Want to leave a comment? You must first log in.

Who likes this?

Heet_Patel