Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Avoid random spawn onto actor

bkhoward2001bkhoward2001 Posts: 86Member, PRO

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 Posts: 11,899Member, Sous Chef, PRO, Senior Sous-Chef

    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 Posts: 86Member, PRO

    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.