Sample Character For 2D Game

Click the green flag to start. Use arrows keys to make the character walk and jump.



This character was made and programmed using Scratch, but the principles are the same for most other 2D Game engines. See the code below to understand how the character movements are programmed.


This code controls the right arrow key, the process is the same only opposite for the left arrow

This is the code for the up arrow

The costumes referenced in the above code examples are these character costumes...




Between the programming code and the character costumes a basic sense of a moving character can be created.




Sample Character For 2D Game Sample Character For 2D Game Reviewed by Opus Web Design on October 20, 2014 Rating: 5

Free Design Stuff Ad