How do I go about changing the spritesheet when the object state changes?
e.g. when the player jumps - I want to use a different spritesheet.
[import]uid: 59249 topic_id: 21551 reply_id: 321551[/import]
How do I go about changing the spritesheet when the object state changes?
e.g. when the player jumps - I want to use a different spritesheet.
[import]uid: 59249 topic_id: 21551 reply_id: 321551[/import]
load both spritesheets into memory
when spritesheet1 one gets to position you want to change
stop animating it. hide it.
show spritesheet 2
animate it.
repeat lather rinse.
c. [import]uid: 24 topic_id: 21551 reply_id: 85408[/import]
This tutorial may also help you, it doesn’t cover a jump but does show a character walking in 4 directions with matching animations.
http://techority.com/2011/05/01/using-sprites-in-your-corona-iphone-application/
Peach
[import]uid: 52491 topic_id: 21551 reply_id: 85468[/import]
@peach pellen - Awesome tutorial!
Thanks!
[import]uid: 59249 topic_id: 21551 reply_id: 85525[/import]