if an actor overlaps with another actor and after 1 sec it doesn't overlap with a third actor..

hi guys I'm making a little game, I want that actor 1 when overlaps with actor 2 and, if after 1 second doesn't overlaps with actor 3, then , change scene. Sorry for any errors but I'm not English. Thanks and good day.

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited March 2014

    Does actor1 have to stay overlapping actor2 during the 1 second? If so, try these rules:

    Actor1
    When actor overlaps with actor2 change attribute self.overlapping to true Otherwise change attribute self.overlapping to false When actor overlaps with actor3 change attribute self.overlapping to false When attribute self.overlapping is true      Change attribute self.overlapTime to game.Time      When attribute game.Time > self.overlaptTime+1 Change Scene
    If not, just remove the Otherwise section of the first rule.

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

  • giovanni-cagliogiovanni-caglio Member Posts: 6

    hey.
    doesn't matter if actor1 overlaps with actor2 during the 1 second or not.
    thanks, now I try yours rules

Sign In or Register to comment.