toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
timer in rule
imbrendino
Member
Posts:
37
May 2011
edited November -1
in
Working with GS (Mac)
Why doesn't timer work when he's in the rule?
Comments
imbrendino
Member
Posts:
37
May 2011
doesn't work
JohnPapiomitis
Member
Posts:
6,256
May 2011
timer works in a rule,your gonna have to explain more about what your doing and how you set it up
imbrendino
Member
Posts:
37
May 2011
I have an actor who has to make an animation before it is destroyed ..
JohnPapiomitis
Member
Posts:
6,256
May 2011
your probably destroying the actor before you have the animation take place, so the actors not there to do the animation
can u post a screenshot of your rules
rlehm
Member
Posts:
320
May 2011
I have found that rotate doesn't like to work with timers or rules. Works great if it just sits and rotates, but if it's tied to a rule or timer I hve issues. Probably just me.
imbrendino
Member
Posts:
37
May 2011
then I put them in this order:
Rule:
when overop or collide with actor xxx:
spawn actor xx;
play soud;
destroy;
timer 5 sec: reset scene;
rlehm
Member
Posts:
320
May 2011
if destroy is before the timer runs out, you have destroyed the actor and the timer will render useless. Maybe:
Rule:
when overop or collide with actor xxx:
spawn actor xx;
play soud;
timer 5 sec: reset scene;
destroy actor
imbrendino
Member
Posts:
37
May 2011
doesn't work
rlehm
Member
Posts:
320
May 2011
Maybe move the timer, and 5 sec reset scene INTO the spawned actors rules. So after he is spawned the timer will start and reset?
Sign In
or
Register
to comment.
Comments
can u post a screenshot of your rules
Rule:
when overop or collide with actor xxx:
spawn actor xx;
play soud;
destroy;
timer 5 sec: reset scene;
Rule:
when overop or collide with actor xxx:
spawn actor xx;
play soud;
timer 5 sec: reset scene;
destroy actor