Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

[Fixed in 1.0.31+] Delta_time is undefined with GMLive

A topic by mrvictordiaz created Aug 30, 2020 Views: 262 Replies: 3
Viewing posts 1 to 2

So on my end delta_time is undefined, but only on places where it's live_enabled for some reason.

Developer(+1)

Hm, yes, very cursed

So variable_global_get("delta_time") is undefined

But variable_instance_get(any instance, "delta_time") returns delta_time

There are a few ways to make this work and I don't like how any of them sound tbh

Gotcha! instance_get works for now. Any potential downside to it?

Developer

For use from your code, calling a non-live function like

function my_delta_time() { return delta_time }

should suffice.