i am building a game where i need to trigger an event when the game reaches a certain score i tried using the = to operator but the score was going past before is could trigger, i have set it up using a variable named score and expressed it as: score > 50 however im finding that is either triggers far too early or there is a fair amount of lag for it to trigger. anyone know anything about this??
Offline
Ya do that
Offline
ahwize wrote:
im finding that is either triggers far too early
Like, at the very start? Try adding a WAIT 0 SECS at the beginning of the script that checks.
Offline
scimonster wrote:
ahwize wrote:
im finding that is either triggers far too early
Like, at the very start? Try adding a WAIT 0 SECS at the beginning of the script that checks.
Or just reset the variable in the script that runs the conditional, rather than elsewhere.
Offline