Collision keeps occuring
integr96
Member Posts: 8
I have box 1 which collides with box 2. When box 1 collides with box 2 it spawns actor box 3. My problem is that each time I collide box 1 with box 2 it spawns a new box 3. How do I get it to only spawn one box 3 even though box 1 may collide with box 2 multiple times?
Comments
https://dl.dropbox.com/s/yiwx2wlt58pn4ci/Colliding Boxes.zip?token_hash=AAEta8a6she7tYPzsPsnzcwclXAzrmbC7OftwHfSw5UVKg&dl=1
Like this:
Box 1 actor
If actor collides with Box 2 AND self.AlreadySpawned is false
.....spawn actor Box 3
.....change attribute self.AlreadySpawned to true
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User