Should I destroy an actor?

ozboybrianozboybrian PRO Posts: 2,102
edited January 2012 in Miscellaneous
In a scene.

Would it be better to destroy an actor or just move him off the scene if he's not being used at all for the rest of the scene?
Or would it make no difference.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Support Fabled Apps! :D

Please LIKE Fabled Apps on Facebook.

Please Subscribe to Fabled Apps on YouTube.

Please Follow Fabled Apps on Twitter!

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    edited January 2012
    if your not going to use it again destroy it. If your gonna use it again later, move it off the scene or change the alpha to 0 so you dont have to spawn it again.

    cheers
  • ozboybrianozboybrian PRO Posts: 2,102
    Is there an actually difference between destroying and spawning?
    Also, if it's off screen why would I change the Alpha to 0?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    edited January 2012
    itll give you better fps by destroying it, since youll have less in the scene (maybe even free up some memory, not sure if gamesalads worked on that lately, thats what its supposed to do though)

    And move it off screen OR change the alpha to 0, like you said you dont need to do both

    cheers
  • RPRP Member Posts: 1,990
    @ozbotbrain I ran into the same question a while ago. This helped me out.

  • calvin9403calvin9403 Member Posts: 3,186
    @JP change alpha to 0 in the scene is no good, because it is still there but you just can't see

    @oz is the actor going to be on the scene a lot?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    @ Calvin

    so? Obviously if you have have collide rules or triggers, youll want to move the actor of the screen or have your rules wrapped in a rule when alpha = 1. But its not thats its "no good" it just depends on your project and how your using it.
  • ozboybrianozboybrian PRO Posts: 2,102
    Thanks everyone :)
    Not for any project in particular, but for all projects anyone works on I guess.
    Was mainly information I just wanted to have in my noggin for the day I need it :)

    So I guess, I should destroy it if it's not used again in the scene and move it out of view if it will be recycled later :)
Sign In or Register to comment.