Skip to main content

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

Is there a way to have GMLive ignore a particular line or block of code?

A topic by grakushkin created 18 days ago Views: 43 Replies: 2
Viewing posts 1 to 3

I have "native_cursor_update();" in the step event of my obj_player. Perhaps this isn't the best place to have this line of code, but regardless when I try to make a change in the step event while the game is running, I get an error message that says : 
[GMLive][10/31/2024 3:17:14 PM][ERROR] Runtime error: [error] `instance#ref instance 100045(obj_player)` (instance of obj_player) does not have a variable `native_cursor_update`.

Is there a way to ignore this line of code? Or should I just move it elsewhere?

Developer

You can use live_function_add to add wrappers for extension functions.

Can’t really “ignore” things because then the code wouldn’t run, you know?

Ah thats great, thanks Yal!