I have two images and a sprite (hero). Depending on the player's choice want to load a different image for the hero. How do I do that? N
Using Array? Dynamically Load Sprite?
If you can not want a solution that uses URL (or Internet)
Use different animation frames. Another way of thinking with C2 is the Entity and Image style.
Entities are what are controlled and exist in the game world. Sprites are used to pin onto entities. This allows you to put any sprite onto an entity.
There is load image by URL, but it's not one to regulary use. Especially avoid that way for your request.
Could you show an example?
Develop games in your browser. Powerful, performant & highly capable.
https://www.scirra.com/tutorials/253/ho ... tform-game
There you go. the first and best source for learning the ABC of C2.