This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
crpl:docs:gettimer0 [2021/02/05 16:43] – Rmoved discussion tag Karsten75 | crpl:docs:gettimer0 [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== GetTimer0 | ===== GetTimer0 | ||
- | ^Arguments^Result^Notation^ | + | GetTimer0 |
- | | |Count for timer 0. |%% -- n1%%| | + | |
=== Description === | === Description === | ||
Line 11: | 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</ |