How to make an actor appear and disappear?
Hi,
I am trying to create a menu to display a picture and it's data. I am thinking which way is better. 1)Spawn and destroy the display or 2) Use alpha to make the actor invisible (the actor would still remain on screen.
Many Thanks.
Newbie
I am trying to create a menu to display a picture and it's data. I am thinking which way is better. 1)Spawn and destroy the display or 2) Use alpha to make the actor invisible (the actor would still remain on screen.
Many Thanks.
Newbie
Comments
http://forums.gamesalad.com/discussion/52067/recycling-vs-spawndestroy#latest
?
As far as I understand it, the idea that spawning and destroying slowly eats into memory usage is a myth left over from versions of GameSalad from a fair while back, I've done some fairly extensive testing (in the order of hundreds of thousands of spawn destroy cycles in a single project) and from what I can see it's impossible, not difficult but actually impossible, to impact on performance or memory usage using spawning and destroying.
But . . . . I would be happy to be proven wrong - it's all free learning / information to me, so like I say, give it a go, if you can produce a project, a basic spawning and destroying project, that eats into system memory on a device I'd be more than happy to take a look at it.
Back to the OP, both spawn & destroy or switching the alpha channel work well, use whichever suits the project.