Simultaneously Spawned Actors Problem

kikoFCkikoFC Member Posts: 2
edited November -1 in Working with GS (Mac)
Hey there fellow game chefs!

I've recently started work on my first gamesalad project and have run into a bit of a snag. Essentially I'm spawning actors over a grid in order to dynamically generate a path around user-placed obstacles.

My only problem is when propagating them, on occasion multiple actors will be spawned at the EXACT same time on the exact same square. Right now this triggers my collision detectors simultaneously for both actors, and they (between 2 and 4 of them) are all destroyed. What I want to do therefore is delete all but one of these actors. Complicating this matter is the fact that this same phenomenon may occur over multiple grid nodes simultaneously.

It doesn't really matter which one it is, I just need to make sure only one of them continues to occupy that square!

Any thoughts or tips on getting sorted would be much appreciated :)
Thanks guys.
Sign In or Register to comment.