GameSalad

Timer (Run to completion) causing an infinite loop?

abuabed84abuabed84 Posts: 364Member, PRO

Say
-When actor overlaps or collides with actor X
-When attribute Y = 0
-Timer after 2 seconds (Run to completion) change Y to 1

At another location
-When attribute Y = 1
-Timer after 2 seconds (Run to completion) Change Y to Zero

What I notice here is a loop occurs even though the first condition is nullified (overlap condition)
How do I make this rule without creating an infinite loop?

Comments

  • SocksSocks London, UK.Posts: 12,698Member, PRO
    edited June 14

    Not sure what 'At another location' means ?

    Do you want this . . . .

    When actor A collides with actor B the attribute called 'Y' changes from 0 to 1 after 2 seconds . . . then 2 seconds later the same attribute changes back to 0 ?

Sign In or Register to comment.