I'm (trying) to make a Guitar Hero kinda game, but I have hit a small problem. I have a variable beat going, but I need something to happen every forth beat starting from 3. Any ideas? I could be going about it the wrong way. Help!
Offline
The Mod function is very useful for that sort of thing. It returns the remainder of the first number divided by the second number. So if you have a count of the beats in a variable called "Beats" then you could do something like this:
[blocks]
<if><( (( <{ Beats }> <mod> 4 )) <=> 0 )>
do stuff
<end>
[/blocks]
Offline
Great thanks!
Offline