How many animation frames can a sprite have?

Get help using Construct 2

Post » Thu Aug 08, 2013 3:57 am

Hello all.

For a game I'm making I'm using an object that possesses many animation frames and tiling it to make a background. To give variation to the background I'm using different animation frames on the sprites at various locations. I have done this to reduce the number of sprites on screen.

My question is as follows; Is there a limit to the number of animation frames that a sprite can possess? If there is no limit, is there a number at which it's best to use another sprite that possesses multiple animation frames to maximise performance?
B
10
S
3
G
1
Posts: 30
Reputation: 1,279

Post » Thu Aug 08, 2013 5:50 pm

I've put 10,000 animation frames into one sprite.

My program ran just fine...

The big problem is that Construct 2 makes "thumbnails" when dealing with Animation Frames and it refreshes those thumbnails quite often while working with your Animation Frames and at 10,000 frames that process was VERY slow.

My .PNG images were 300x70 pixels.
B
10
S
4
G
2
Posts: 133
Reputation: 2,667

Post » Thu Aug 08, 2013 9:10 pm

I really can't envisage my project running anywhere NEAR that. That's really good to know.

Thank you for your help!!
B
10
S
3
G
1
Posts: 30
Reputation: 1,279

Post » Fri Aug 09, 2013 2:55 pm

10000 frames. wow, quite interesting :)
B
11
S
1
Posts: 9
Reputation: 613


Return to How do I....?

Who is online

Users browsing this forum: Exabot [Bot], PauloMarcio, Phacanu and 3 guests