Hi all!
I need some help with a project made by
@bowerandy .
I am using SceneManager by
@atlim and Wax by
@bowerandy . I wanted to use the BhWaxSceneDemo with my GiderosiOSPlayer. I added all of the files to my Player and it all works fine. Now what I want to do is use elements like date pickers, textfields, etc. that go by the rules of SceneManager.
Now I looked at BhWaxSceneDemo on
https://github.com/bowerhaus/BhWax/blob/master/BhWaxSceneDemo.luaI thought all you had to do was add the name of the LUA file like it shows in the project to allow elements of Wax to be incorporated with SceneManager.
Ex.
function DemoScene1:onButtonClicked()
BhWaxSceneDemo.sharedInstance.sceneManager:changeScene("scene2", 1, SceneManager.moveFromRight)
end |
BhWaxSceneDemo is the name of the LUA file so I thought that all you had to add before sharedInstance was the name of the file. But that wasn't it.
Hopefully this all makes sense.
So I'm kind of stuck in the mud right now, and help would be appreciated.
Thanks!
-Landon
Comments
best regards
Thanks for the response. I have another quick question you can probably answer.
I use a main.lua and other scenes shown below:
I want to know if I have to put a :init() line in every LUA file, or just the main.lua.
Thanks!
-Landon
Lead Coder and Designer