User Tools

Site Tools


crpl:docs:gettimer2

Differences

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

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
crpl:docs:gettimer2 [2013/01/14 14:06] – created virgilwcrpl:docs:gettimer2 [2020/09/02 11:00] nathanaelps
Line 1: Line 1:
-TODO+~~DISCUSSION~~ 
 +<- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#timers|Timers]] 
 +=====  GetTimer2  ===== 
 + 
 +^Arguments^Result^Notation^ 
 +| |Count for timer 2 |%% -- n1%%| 
 + 
 + 
 +=== Description === 
 +Gets the current value of timer 2.  
 +Timers are set to some value, and then decrease by 1 each game frame  
 +(even if the core is in a Delay). 
 +=== Examples === 
 +<code># Sets the creeper height to 20 on the crpl core position every 30 frames (1 second) 
 +GetTimer2 eq0 if 
 +CurrentCoords 20 SetCreeper 
 +30 SetTimer2 
 +endif</code> 
crpl/docs/gettimer2.txt · Last modified: 2021/02/05 11:43 by Karsten75