User Tools

Site Tools


crpl:docs:settimer0

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
crpl:docs:settimer0 [2013/01/14 19:06] – created virgilwcrpl:docs:settimer0 [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 1: Line 1:
-TODO+ 
 +<- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#timers|Timers]] 
 +=====  SetTimer0  ===== 
 + 
 +<-amt SetTimer0  
 + 
 + 
 + 
 +=== Description === 
 +Sets the current value of timer 0.  
 +Timers are set to some value, and then decrease by 1 each game frame (even if the core is in a Delay). 
 +=== Examples === 
 +<code 4RPL> 
 +# Sets the creeper height to 20 on the crpl core position every 30 frames (1 second) 
 +GetTimer0 eq0 if 
 +CurrentCoords 20 SetCreeper 
 +30 SetTimer0 
 +endif</code> 
crpl/docs/settimer0.1358190417.txt.gz · Last modified: 2025/02/14 14:56 (external edit)