Recycle

GingerBGamesGingerBGames Member Posts: 390
edited November -1 in Working with GS (Mac)
Hello GS'ers,

I am curious on how to recycle actors instead of spawning them? I know how to spawn and then destroy. I don't know how to do the recycle. Can someone help me with how to, or is there a certain template I can get a hold of and see for my self? I know that one what is a "trigger", as in, when Actor 1 does this (or whatever), Actor 2 does this. I haven't been able to do this correctly yet either so...any help would be greatly appreciated. Thanks.

Comments

  • danlbryantdanlbryant Member Posts: 236
    I haven't done this myself, but theoretically:
    If you have multiple enemies you want to show, you instead of deleting them, you could place them at the enemy spawn location. So instead of allocating memory for another actor, you would be simply reusing it, I should do that for my game :O
  • GingerBGamesGingerBGames Member Posts: 390
    So create a "spawn actor that spawns Actor 2", and just place the Actor 2 on top of the spawn actor in the scene? This will get ride of the actual spawn rule. Do I put them in the scene, or have it off the scene?
Sign In or Register to comment.