Alternatively, if you want the silky smoothness of sine, you could just set your variable to:[code](sin(x + 270) + 1) * 49.5 + 1[/code]This will oscillate between 1 and 100. x can be any value you want, such as a variable you iterate by yourself, or you can take the game time and have a nifty one line solution.

EDIT: Here's a Google Graph for the Hell of itlinkman20042012-08-28 15:37:25

@Yann thanks! it's even fancier code. Make sure don't use "min" and "max" because these names are reserved for c2 expression system and @linkman2004 I don't get why sin + "x" isn't working, it appears to be invalid, did you mean we should to put an existent variable?Joannesalfa2012-08-28 19:46:08

Yeah, x is simply a stand in for a variable of your choosing. For example, you could use:[code](sin((time * 1000) + 270) + 1) * 49.5 + 1[/code]Where "time" is the actual system expression for elapsed time in seconds - multiplying this value by 1000 gets you milliseconds. Multiplying "time" by a higher number will increase the speed of oscillation while multiplying by a lower number will decrease the speed.