Loose life, reset scene and reset timer from collisions

MoogusMoogus Member, PRO Posts: 77

Hi guys

stumped again and can't see the logic of where i'm going wrong.

I have a timer in form of a bar (rather than number timer). The bar counts down to Zero at which point once reach zero you loose a life and bar resets - This working fine (bar set as index 10)

BUT

When my actors collide and I loose life and scene is reset. I would like to also reset the timerbar to original 10, but can't work it out.

I have tried a simple rule with a change attribute:
rule: if actor collides with XXXX CHANGE ATTRIBUTE game.timerbar TO game.timerbar=10 then ResetScene

and it does nothing. At best scene resets, but timebar continues to count down from previous stage and doesn't reset .

I have tried various ways, and can't work it out I don't understand what wrong with the logic.

Can any of you super duper GS Pro shed some light on this ??

Thanks

M
p.s. hope you can flow my problem

Comments

  • BBEnkBBEnk Member Posts: 1,764

    change attribute game.timebar to 10

  • MoogusMoogus Member, PRO Posts: 77

    @BBEnk - Thanks for quick reply, yes logic says to do that and I have tried it, but the ?@£$@ doesn't, bizaar - I know mad!

  • BBEnkBBEnk Member Posts: 1,764

    are you putting just 10 or game.timer=10?

  • MoogusMoogus Member, PRO Posts: 77

    I have tried both, its really odd. no logic.

  • MoogusMoogus Member, PRO Posts: 77

    @BBEnk again no logic. I redid the behaviours from scatch, including change attribute and it worked. i didn't do anything different than before. Well it now works ! yay !

Sign In or Register to comment.