so, my game time in millis is 10,000 (10 seconds) this is changeable,

so, my game time in millis is 10,000 (10 seconds) this is changeable, and id like a tension creator, so something will happen at intervalgame/4

the following simple code works, but is an over riding constant.

is there a way of manually starting the counter for EVERY_N_MILLISECONDS, or will i have to resort back to the millis() computation?

EVERY_N_MILLISECONDS( intervalGame/4 ) {do something}

A while back, there was a post about passing a variable to the EVERY function:

https://plus.google.com/106461657512143768817/posts/AyRzBp77g4h

If the link fails, search for “EVERY_N_MILLIS_I” . The “_I” at the end is important.

@Kelvin_Mead Even though I’m not exactly sure what you were asking, your post did peak my interest to investigate the EVERY_N* stuff some more. Here’s a wacky test I made that tests out manually creating the timers, checking timers with if statement, and using setPeriod(), getPeriod(), getRemaining(), and reset().

@marmil thats really useful! thanks!