Closed michaels-account closed 1 year ago
It is likely that you are calling onTick
outside of an <Application />
component. Any usage of onTick
must be from a child component of <Application />
or <Ticker />
.
You can see a codesandbox example here - https://codesandbox.io/s/svelte-pixi-vite-ontick-mfobo7
Hopefully that helps! If not, please share a reproducible example so I can take a look. That can either be a link to a github repo or codesandbox, either would work.
Ahha you're right. Thanks for your help again!
Hi!
When using any of the ticker components, both onTick and getTicker, I recieve this error message:
I tested by copying your examples from the documentation. Again, pretty new to all this so there's a good chance I'm missing something!