Recycle
GingerBGames
Member Posts: 390
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.
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
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