Hello everyone. I have small question to ask, nothing special just about implementing another project to my main game project. I'm using ar2rsawseen's Multi Slider code and I found out it works with scene manager. I implemented it into my project and the multi slider code works great, but.. I imported the slider code into my onEnterEnd function and other buttons lost the functionality with the error:
classes/scenemanager.lua:287: attempt to index field '?' (a nil value)
classes/scenemanager.lua:287: in function 'changeScene'
scenes/gamesc.lua:41: in function
I can see that slider uses sceneManager and a Sprite and I do believe I have to change the sceneManager code to something else so the other buttons could work. I tried addEventListener but none of my codes worked well.
I don't need full code or such, I'm here to ask some tips about what should I use to manage the slider and other buttons to work in the same time.