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. You should grab SpriteFoot and use it to slice up Sprites for use in this program. You could use your own sprites, too, if you follow the naming convention.

Instructions:
- Hold SHIFT to Run
- Arrow keys to move OR
- Click mouse to try click-to-move functionality

964 views / 34 in the last 7 days

3 votes | 1 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 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
A new version of this scenario was uploaded on 2019-10-22 13:22:35 UTC
A new version of this scenario was uploaded on 2019-10-23 12:27:12 UTC Improved commenting to make it easier to follow.
A new version of this scenario was uploaded on 2020-01-17 13:38:16 UTC Vastly improved organization. Now allows for as many named animations as the programmer wants. "Terminal animations" have been added - these are animations that are intended to be run a finite number of times before returning tot he base (movement) animation. For example, press space bar and the player will run an attack animation and then return to his base movement animations.
A new version of this scenario was uploaded on 2020-01-17 13:40:32 UTC
A new version of this scenario was uploaded on 2020-01-17 13:54:14 UTC

See all comments

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

Who likes this?

tonyx zombzthewd Heet_Patel