Skip to main content

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

Hey! I'm getting this problem where when I call the screen for the outfits ui the program gives me this error regarding the imagebuttons:

For example for this one:

    imagebutton auto "button top_1.png" align((1.0, 0.5)) action [Show(top1), Hide(top2)]

i get the error:

NameError: name 'top1' is not defined

Which is really confusing because in your code you never had to define each screen like that, or I mean, they're already defined above:

screen top1 zorder 1:


It cant be a problem with the version because your code runs with no issues

Unfortunately I don't know!

Tested this again and it works for me, so my guess is that there might have been a problem with the way you copied the code or files into your project? Sorry I can't be of much help!

(2 edits) (+1)

Found it! I'm an idiot, I just wasn't putting those names inside quotes in the imagebutton line.

Thanks a lot for the quick response though! I got it to work!