User Tools

Site Tools


crpl:docs:settimer0

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
crpl:docs:settimer0 [2021/02/05 11:43] – Rmoved discussion tag Karsten75crpl:docs:settimer0 [2022/08/01 12:52] (current) – Reformat Karsten75
Line 3: Line 3:
 =====  SetTimer0  ===== =====  SetTimer0  =====
  
-^Arguments^Result^Notation^ +<-amt SetTimer0  
-|The value to set timer 0 to.| |''n1 -- ''|+
  
  
 === Description === === Description ===
 Sets the current value of timer 0.  Sets the current value of timer 0. 
-Timers are set to some value, and the decrease by 1 each game frame (even if the core is in a Delay).+Timers are set to some value, and then decrease by 1 each game frame (even if the core is in a Delay).
 === Examples === === Examples ===
-<code># Sets the creeper height to 20 on the crpl core position every 30 frames (1 second)+<code 4RPL> 
 +# Sets the creeper height to 20 on the crpl core position every 30 frames (1 second)
 GetTimer0 eq0 if GetTimer0 eq0 if
 CurrentCoords 20 SetCreeper CurrentCoords 20 SetCreeper
 30 SetTimer0 30 SetTimer0
 endif</code>  endif</code> 
crpl/docs/settimer0.txt · Last modified: 2022/08/01 12:52 by Karsten75