Page 1 of 1

activation regions and actors

PostPosted: Fri May 07, 2010 1:27 pm
by sonicfire
Hi there!

i have a question about actor creation on startup, destroy actors when out of vision and activation regions!
so i have my view on "level 1" with an activation region defined. when i want to restart this "level" i thought it would be
enough to move the view outside the activation region, and then move it back - and everything should restart.

BUT: this isnt the case! can anybody help me here? i have some elements removed (destroy actor) when leaving the "level" because
when i am in level2 - theres no need to draw level1 stuff.

or is it not required to destroy actors out of vision when leaving an activation region? because then it seems to work, im only worried about CPU usage :)

any help really appreciated - thanks!!

Re: activation regions and actors

PostPosted: Fri May 07, 2010 2:58 pm
by makslane
If you actor don't need to be destroyed (like a bullet, for example), you donĀ“t need to destroy it to save memory.
The Activation Regions will do that for you.

Re: activation regions and actors

PostPosted: Fri May 07, 2010 5:45 pm
by sonicfire
Ok, thanks for info! :D