W
Wild_West
Guest
this is just a simple script I'm trying to use to make a variable of any kind count down as I've had success using this method in place of alarms because those can get confusing.
The problem is from what I see the script should be working but the timers I set aren't counting down.
I've made many other scripts up until now but those all used values from other objects except for this one I made for attacking, which has no variables specific to my player inserted as those would of course come upon calling the script.
So yeah just confused as to why the attacking script will work but this timer one won't.
Thanks for any advice. My version of Gm:studio is standard 1.4
///set_loop_timer( typeOfTimer, lowestTime, resetTime, decayRate);
if(argument0 <= argument1){ argument0 = argument2; }
if(argument0 >= argument2){ argument0 = argument2; }
argument0 -= argument3;
The problem is from what I see the script should be working but the timers I set aren't counting down.
I've made many other scripts up until now but those all used values from other objects except for this one I made for attacking, which has no variables specific to my player inserted as those would of course come upon calling the script.
So yeah just confused as to why the attacking script will work but this timer one won't.
Thanks for any advice. My version of Gm:studio is standard 1.4
///set_loop_timer( typeOfTimer, lowestTime, resetTime, decayRate);
if(argument0 <= argument1){ argument0 = argument2; }
if(argument0 >= argument2){ argument0 = argument2; }
argument0 -= argument3;