Hello all i seem to have a problem with making a button i use :
local bg = Bitmap.new(Texture.new("bg.png"))
button = Button.new("start.png","start.png");
button:setPosition(10,10)
stage:addChild(button)
stage:addChild(bg)
and i get an error when i try to run:
attempt to index global 'Button' (a nil value)
I can´t figure out what i´m doing wrong here :X
Comments
Button is not actually a built in Gideros class, but rather a lua class build upon it, you can download it and include in your project (button.lua) from here:
https://github.com/gideros/Button
And the usage is also a bit different.
You need to provide Bitmap instances like this:
Hope that helps
Likes: rcorreiaptpt