Best way to NOT use Spawn Actor?

fmarkusfmarkus Member Posts: 42
edited November -1 in Working with GS (Mac)
Hi all,
So it seems that Spawn Actor takes a lot of CPU time. If I am to create my actors by hand and hide them on the scene, what would be the best way to pick one that is currently not used?
Thanks for your input!

Comments

  • adadoadado Member Posts: 219
    Have an invisible "scene controller" actor that moves them to where they need to be when they need to be there (i.e. based on timers, actions, other decisions, etc.).

    Then when they are to be destroyed, just halt their movement and move them off screen.

    Having each with a unique actor ID can aid in selecting from a bunch with game counter to keep track or a set of attributes to keep track of their state.
  • fmarkusfmarkus Member Posts: 42
    Interesting last bit! Do you have an example of how to use unique actor ID and a counter to keep track of attributes?
Sign In or Register to comment.