Can't get love frames to work
Posted: Mon Nov 10, 2014 11:46 pm
So i'm attempting to use loveframes to make a button, however no matter what I do, if there is a button on the screen and I have loaded an image in, whenever I hover over the button the window just closes. I use ZeroBrane Studio and the console from there gives me this error after the crash:
I have no idea what i'm doing wrong, but it seems that the button only works if I don't load an image anywhere in my code. This also happens with every other object from loveframes.
Code: Select all
Error: libraries/loveframes/objects/base.lua:790: attempt to call field 'insert' (a nil value)
stack traceback:
libraries/loveframes/objects/base.lua:790: in function 'CheckHover'
libraries/loveframes/objects/button.lua:49: in function 'update'
libraries/loveframes/objects/base.lua:45: in function 'update'
libraries/loveframes/init.lua:204: in function 'update'
main.lua:11: in function 'update'
[string "boot.lua"]:434: in function <[string "boot.lua"]:399>
[C]: in function 'xpcall'
Program completed in 1.25 seconds (pid: 4540).