Const
Special symbol used with useRef to get a stable reference to the current entity's underlying LEA KaylaRectEntity.
useRef
KaylaRectEntity
Pass this symbol directly as the initial value to useRef(self) — it is replaced with the actual entity instance once mounted.
useRef(self)
Do NOT use this symbol anywhere else — it's only meaningful as the argument to useRef.
const entity = useRef(self);useTick(dt => { entity.current.pos.x += 150 * dt; entity.current.setFlag("invulnerable", true);});// Later — access raw LEA entity methodsentity.current.getRect(); // or other LEA-specific stuff Copy
const entity = useRef(self);useTick(dt => { entity.current.pos.x += 150 * dt; entity.current.setFlag("invulnerable", true);});// Later — access raw LEA entity methodsentity.current.getRect(); // or other LEA-specific stuff
Special symbol used with
useRefto get a stable reference to the current entity's underlying LEAKaylaRectEntity.Pass this symbol directly as the initial value to
useRef(self)— it is replaced with the actual entity instance once mounted.Do NOT use this symbol anywhere else — it's only meaningful as the argument to
useRef.