sprite animation, how to "remember" the frames

Post Reply
Tomdev
Posts: 82
Joined: Thu Jan 08, 2009 9:15 pm

sprite animation, how to "remember" the frames

Post by Tomdev » Sat Mar 14, 2009 3:36 pm

ok, so i have my sprite animation working, but now a related question, in my test-animation i had only one sprite so there wasn't a problem but say i have 3 sprites on the screen. i have to keep track of which frame the sprite is showing but what's the best way for doing this. create a info array for each sprite?

eKid
Posts: 65
Joined: Sat Dec 06, 2008 6:07 pm
Contact:

Re: sprite animation, how to "remember" the frames

Post by eKid » Mon Mar 16, 2009 6:06 am

You should keep data about all of the objects or entities present (containing their animation frames and what not). Then you can translate that data into sprite/rendering data for displaying them.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 2 guests