Timer resetting problem

timbirks

  • Posts: 75
Hi all, If anyone can help with this problem it'd be be greatly appreciated.  Basically I have a Timer on fired missiles (starts at zero and counts up as the missile travels away), dependant on when the missile strikes is the score you get from the timer.  Only thing is, when I fire a second missile the timer on the first missile resets back to zero whilst it is still travelling, any ideas of how to make sure timers are individual to each missile fired?  many thanks!
Super Crash Land v1.2 - Available to Download now from Google Play absolutely free!   

https://play.google.com/store/apps/details?id=com.timbirks.supercrashlandv12

iNK

  • Posts: 68
Sounds like you're sharing the same variable for both missiles - are you using a game attribute (Purple), or an attribute local to the actor (Blue)?

Photon

  • Posts: 2691
Basically, as iNK alluded to, make sure the timer being used is local to each missile. I can maybe provide a little more insight if you post the code/behavior in question (be sure to specify whether it is an actor or scene behavior.)
Do NOT PM me your questions, because I likely will not respond. If I have replied to your question on the forum, keep using that topic. Thanks!

timbirks

  • Posts: 75
Hi, thanks for the quick replies,  it's solved now.  I was using a game attribute instead of a local attribute, (the blue one worked!) thanks for your help.
Super Crash Land v1.2 - Available to Download now from Google Play absolutely free!   

https://play.google.com/store/apps/details?id=com.timbirks.supercrashlandv12