This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
crpl:docs:gettimer0 [2014/10/01 19:02] – external edit 127.0.0.1 | crpl:docs:gettimer0 [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~DISCUSSION~~ | + | |
<- [[crpl: | <- [[crpl: | ||
===== GetTimer0 | ===== GetTimer0 | ||
- | ^Arguments^Result^Notation^ | + | GetTimer0 ->val |
- | | |Count for timer 0. ||| FIXME ||| | + | |
=== Description === | === Description === | ||
Line 12: | Line 10: | ||
(even if the core is in a Delay). | (even if the core is in a Delay). | ||
=== Examples === | === Examples === | ||
- | < | + | < |
+ | # 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</ | endif</ |