Files
simian/scripts/update.as
Nick Koirala f352b432d9
Some checks failed
CI / build-and-test (push) Has been cancelled
feat: added toast support to scripting
2025-11-14 15:04:00 +13:00

13 lines
253 B
ActionScript

float x = 50;
float y = 100;
void Update(float dt) {
x += 500 * dt;
if (x > 800) {
x = 0;
Print("X position reset!");
Log(LOG_INFO, "Log INFO: reset happened");
Toast::Info("X position has been reset.");
}
}