Animate or Change Self.image every 1 second?
Kangavark
Member Posts: 62
quick question: what is the best option that doesn't kill the frame rate? Animate or change attribute, self.image with a timer?
thanks
thanks
Comments
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Animating 10 images at 2 fps kept me at a smooth 60 fps, whereas changing the image every 0.5 seconds made it dip down to as low as 18 fps!
I've got stuff animating at 30 fps - as well changing images (change attribute self.image) at around 60 fps - and the game itself still runs at 60 fps.
How big are your images ?
Does the whole image animate or just one section ?
...yeah...you're right...if there was a "begrudgingly admit you're right" emoticon, I'd use it now.
But, if I have 4 words x 10 variants each--even though they'll be much smaller than the BG (let's say 800x500), but still, that's 40 actors being cycled through simultaneously--is that really more efficient?
800 x 500 x 4 = 1,600,000 px
2048 x 1536 = 3,145,728 px
(Also only 4 actors are being 'cycled' simultaneously)