Avoid random spawn onto actor

bkhoward2001bkhoward2001 Member, PRO Posts: 86

I have a scene where several actors spawn randomly onto the scene... I do not want them to spawn on another actor or else the collision rule will be tripped... How do I avoid randomly spawning onto another actor?


  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,944

    One idea is to wrap your collision rule inside a rule that says If self.Time < 0.1 (or some other small value) then destroy actor. That way, a newly spawned actor that collides will be destroyed but an existing actor that collides with another existing actor won't.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • bkhoward2001bkhoward2001 Member, PRO Posts: 86

    The problem is the ones that spawn on the collision object are getting counted into the score and that is not what I want....

Sign In or Register to comment.