using a timer within a rule..?
wfv7845
Member Posts: 3
I'm wanting to use the timer to perform a certain behavior within a simple rule I have. I'm not sure which behavior I'm wanting to include within the timer yet (either reset scene, change scene or pause game), but none of them seem to work when I put the timer inside of the rule. When I remove the timer from the rule it works fine on its on. I've included a picture of what I'm trying to do just in case I was confusing because I'm terrible at explaining things
<img src="http://i284.photobucket.com/albums/ll9/wfv7845/Screen%20Shot%202015-08-03%20at%2012.33.10%20PM_zpsnfcwkuge.png" border="0" alt=" photo Screen Shot 2015-08-03 at 12.33.10 PM_zpsnfcwkuge.png"/></a" title="">
anyone have any idea why this will not work? Thanks!
Comments
What's probably happening is this:
Behaviours inside a rule will only run as long as the rule is still true. If the rule is no longer true before the 3 seconds have elapsed, the timer won't do anything.
What you're showing in the logic there is essentially "After the actor has collided with the meteor for three seconds, reset scene."
If you tick the "run to completion" box, it should work. Ticking that box will make this happen:
That's probably your issue!
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
I don't know why I didn't try that because I literally tried everything but. Anyways, thank you! It works perfectly now.