Damn variables...
ulisse
Member Posts: 25
Hi
I am trying to have 2 actors communicating through a global variable.
The variable holds a timer (a real) for actor A, who uses it inside a timer.
Actor B sets it to a new value and, after an amount of time, it restores it's original value.
Looks like actor A responds to the first setting, but as I replace the original value actor A still responds to the altered value.
More...if I try to display in actor A the value of the global variable I always see it's original value.
Please help me
I am trying to have 2 actors communicating through a global variable.
The variable holds a timer (a real) for actor A, who uses it inside a timer.
Actor B sets it to a new value and, after an amount of time, it restores it's original value.
Looks like actor A responds to the first setting, but as I replace the original value actor A still responds to the altered value.
More...if I try to display in actor A the value of the global variable I always see it's original value.
Please help me
Comments
:-)
---------------------------------------------------------------
Spiral Gyro Apps
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Looks like simply restarting GS solved the problem along with the usual slowdown
However thanks for the help
I have a spawner inside a timer and I want to alter its duration while progressing in game.
I keep the loop duration inside a global variable, but as I alter it my timer still behaves the same.
I printed the value so I'm sure it changes at the right time. Maybe the timer cannot change once activated?
Search for "timer with variable rate" in the shared projects
thanks a lot