Skip to content

3. Player

George Clensy edited this page Jun 25, 2024 · 1 revision

How do I set up my sprite sheet for animation?

With libRPG the frames for each animation should be 1 per column on the sprite sheet and each row should have a different animation. In the current version of libRPG the walking down animation (holding s) has to be on the first row of the sprite sheet, walking left (a) on the second, walking right (d) on the third and walking up (w) on the fourth. Any other animations user defined animations such as swinging sword should be drawn on the lower row and in a future version will be able to be called with PlayAnimation(int rowNumber);

Clone this wiki locally