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

Report as inappropriate.

MrCohen
MrCohen presents ...

2018/11/19

AnimatedCharacter

This is OLD. The newer one has a lot more features and an actual API:
https://www.greenfoot.org/scenarios/25667

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:
- SHIFT - Run
- SPACE BAR - Attack
- Arrow keys to move OR
- Click mouse to try click-to-move functionality

4892 views / 26 in the last 7 days

5 votes | 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 2020-01-17 13:40:32 UTC
A new version of this scenario was uploaded on 2020-01-17 13:54:14 UTC
A new version of this scenario was uploaded on 2020-01-21 16:41:39 UTC Cleaned up Player to make it easier to understand. Improved comments and documentation to be accurate and up to date. This is my last update on this for a while, but your bug reports and feedback are still welcome.
A new version of this scenario was uploaded on 2020-04-23 12:32:46 UTC More fixes...
A new version of this scenario was uploaded on 2020-11-01 12:36:03 UTC Error ... Fixed one, still another... DO NOT DOWNLOAD until fixed.
A new version of this scenario was uploaded on 2020-11-01 13:16:31 UTC Back in working order.
A new version of this scenario was uploaded on 2020-11-01 13:21:40 UTC
A new version of this scenario was uploaded on 2020-11-03 18:49:28 UTC
A new version of this scenario was uploaded on 2020-11-10 14:04:24 UTC Bug fixes for non-directional Animations.
SwaggyXiaoSwaggyXiao

2020/11/11

Let me leave a comment for this historical amazing project XD

See all comments

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

Who likes this?

PascalFischer SwaggyXiao tonyx zombzthewd Heet_Patel