Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Maximum number of animated sprites on screen?

Author
Message
Grooovy!
16
Years of Service
User Offline
Joined: 22nd Aug 2008
Location: Delray Beach, FL USA
Posted: 24th Jul 2013 02:41
Hi,

I'm doing a platform game right now in Tier 1.
I have some animated sprites (rotating coins, gems, springboards, etc...) on screen.

I am at nine + the player = ten animated sprites.

However, when I add an eleventh, twelfth etc, then run the game again, some of the sprites will not show their animation.. they appear static.

I was just wondering if there was a limit to how many animated sprites one can have in the same scene?

Thanks in advance for any info!

Marl
13
Years of Service
User Offline
Joined: 19th Nov 2011
Location: Bradford, UK
Posted: 24th Jul 2013 02:50
A lot more than that

I don't know of a numerical limit - probably more about resources.

The most I've had on screen at once was probably about 70 or 80 cycling through 8 to 16 frames at between 15 and 25 (animation) fps - but that was more about the design of the app than an attempt to find any kind of limit.

I've had thousands of sprites on screen at once, but I don't think they were animated.
Grooovy!
16
Years of Service
User Offline
Joined: 22nd Aug 2008
Location: Delray Beach, FL USA
Posted: 24th Jul 2013 03:03
AAARRRGHHH!

Logic bomb in my code!!!

I have an array that I check periodically that contains sprite types (friends, enemies, collectables, health etc)

I was not correctly referencing the "springboard" type sprite in my array.

SOLVED.

Thanks for your input though, Marl!

Login to post a reply

Server time is: 2025-05-23 03:06:29
Your offset time is: 2025-05-23 03:06:29