A rule to pause an actor when overlapping another actor
reginald.bernardin
Member Posts: 346
Hello
I want to have a rule when actor 1 overlaps or collides with actor 2 then actor 2 is paused and it functionally is paused when in the actor 1 area. So like when actor 2 is in that actor 1 area actor 2s rules and behaviors are paused for that moment. Any tips.
Thanks
Comments
When actor collides with actor 1
[no rules]
Otherwise
[all of the rules for the actor]
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Thanks tatiang but how would that look on gamesalad. Like is there a no rule behavoir and an all rule behavior?
No, you would just drag in a Rule and then open the Otherwise section and add all of your rules or behaviors there. When the rule condition (actor overlaps or collides) is false, then the Otherwise section will be active and anything placed there will run.
My [ ] notations above just meant "don't put any rules/behaviors here" and "put all of your rules/behaviors here."
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Like this:
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Thanks i will try it