question about coding to change elements????
Posted: Mon Sep 03, 2012 8:17 pm
hello there ....
i was wondering about what type of scripting could be used to change the interval speed of a timer??
example: say for instance i've created a timer & named it xyz with an interval of 250MS and then under
actions for a specific actor it would relate to.... wanted to have a keydown event to change the speed
+ or - 250 MS? how can i do that. or if expressing a keypress thru the timer actions with a scripting
item in code ????
i had an idea (perhaps completely wrong) about it in code:
if (keypress(key_z) == TRUE)
{
(xyz.time=xyz.time-25);
}
// the lower the interval number,... the faster the timer will move....
if anyone could let me know how i can do this,...... i'd be ever so thankful!!!
i was wondering about what type of scripting could be used to change the interval speed of a timer??
example: say for instance i've created a timer & named it xyz with an interval of 250MS and then under
actions for a specific actor it would relate to.... wanted to have a keydown event to change the speed
+ or - 250 MS? how can i do that. or if expressing a keypress thru the timer actions with a scripting
item in code ????
i had an idea (perhaps completely wrong) about it in code:
if (keypress(key_z) == TRUE)
{
(xyz.time=xyz.time-25);
}
// the lower the interval number,... the faster the timer will move....
if anyone could let me know how i can do this,...... i'd be ever so thankful!!!