Valter Buccina made a demo application using sprites in Castle Game Engine.
The demo is available on https://github.com/valterb/sprite-demo-castle-engine.
Citing from the README:
Demo is divided into two parts:
- Goniometer
- Road demo
The first shows with extreme precision the direction of the sprite in degrees. Using mouse click coordinates and Player position we apply the arctangent formula and convert the value obtained in degrees. This way we get the requested direction.
The second one is a demo with a road background where you can move the sprite that is sized according to the distance from the observation point. One click to walk, double click to run. Run animation is divided into three actions, short initial walk, run, short final walk but it is not perfect.
See the forum post for details. (This post was on an old forum — please use new forum for comments.)
Thank you!
Start the discussion at Castle Game Engine Forum