Hey guys, i want to make a popup window / pause overlay in my game and i found code for a showOverlay with storyboard.
Here is my example code.
This is my button:
local mybutton = display.newRect(display.contentCenterX, 300, 100, 100) mybutton:setFillColor(0, 0, 1) mybutton:addEventListener("touch", btnTap) sceneGroup:insert(mybutton)
And here the listener:
local function btnTap(event) storyboard.showOverlay( "input\_name" ,{effect = "fade" , params ={levelNum = "level01"}, isModal = true} ) return true end
But i always get the same error: “storyboard.lua:1367: attempt to index upvalue ‘touchOverlay’ (a nil value)”
I’ve tried so much to get the overlay running but as i said, i always get this error.
And i dont find any solutions or other error reports for this error.
I hope someone can help me