Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Awesome!

My set click now looks like this:

options[0].set_click_func(function(objid) { edit(objid); }, [self]);

And that's passing in the object so I can use instance_destroy to close it right in the function. Perfect!

Just incase you're wondering, I'm using a function in the function so I can call the same code for both controller and mouse. My controller code calls the function from Step, so I didn't want to duplicate that code in set_click_func as well as there.

Anyhoo - thanks again for your help I really appreciate it :)

Of course!