Hi,
I’m attempting to create a mask with the following code:
local menu_mask = graphics.newMask(“assets/menu_mask.png”)
menu_bg:setMask( menu_mask )
But I get this error in the console:
attempt to index global ‘graphics’ (a nil value)
All of the objects referenced there were created earlier. Menu_bg is an image, does that matter?
Thanks so much.
[import]uid: 14385 topic_id: 5893 reply_id: 305893[/import]