Techical question about a sprite whit number of Frames, and rotosprite

Previous topic - Next topic

mentalthink

Hi there,
I have a doubt whit this question , in example:

I´t more eficient have a animation, (the idea it´s a enemy shot like ellipse, rotating), in example whit 25 Frames, or make only a 1 sprite but using rotoSprite... I speak in platforms like Palm Pre, Android and iPhone, not in wiz or Caanoo (sorry I don´t know if Canno have the same trouble than WIZ on rotosprite was very slow)

matchy

It's a good question and sometime I can only discover through trials. This really depends on the amount of sprites, I imagine. For example on WinCE (I think), 20 rotosprites is slower than draw/animsprite, but then zoomrotosprite is slower again and polyvector is even slower but this might be/is different on the devices. Generally with functional design, I suggest doing tests and replacing the functions with alternative methods to test. Also, rotosprite could only be used when the enemy is hit otherwise drawsprite, all in the name of saving processing cycles.


Ian Price

I suspect that the sprites would be more efficient for two reasons -

1) Rotating lots of sprites does take more CPU time from my experience
2) Accurate collision detection with rotosprite is not possible, is it? You'd perhaps have to roll a function, or grabsprite and test. Slow.

As Matchy stated, sometimes it's best to try out these things for yourself anyway - chopping and changing functions to see the reality of your requirements in your app. What might work better in one app may not in another due to other differences.
I came. I saw. I played.

mentalthink


erico

hi mental, a bit late to this but...

rotosprite is slow on caanoo.
You can use it with success, but will require to ´think´ on the way you use it.

having a set of sprites is sure faster, but it will really depend on what you want to do.
Let´s say you wanna do a game where player is at center and everything else rotates around,
you could benefit on the rotatesprite thing I guess but let´s suppose you have a huge boss, it will be a lot of work to cope with rotatesprite.

So far the tests I did point that using rotate sprite needs more care on code.
what do you have in mind?

mentalthink

Hi erico thanks, well I only make this question beacuase I want some enemies, not a Big Boss, launch me a shoot... imagine like a elipse roating itself, some shots, not a great bunch, but I think I go to make test, I only use 25 Frames, it´s the ISO for my this game, all the thing only have 25F, perhaps some special FX can be more... but I´m not sure...

Thanks for reply.... I told you something about this question...

Thanks to all.