Hi everyone,
I need some help with Storybord. It wouldn’t let me post directly in the storyboard forum so please move this topic if need be.
I have a file within my project that holds a lof of functions etc for my game. How do I make references to those functions from within storyboard?
For example, I have my storyboard scenes main, mainMenu and mainScene (original I know).
I also have a file called env.lua which holds a lot of functions and call-backs and processes.
I want to call one of the functions in the env.lua file (let’s say it’s called load()) from within my mainScene.lua file (which is a storyboard scene).
How would I got about doing that?
I’ve trided to add
require = "env"
at the beginning of the mainScene.lua file and call the load() function but I just get errors.
Can someone please shed some light on this for me?
I am new to programming and this is my first attempt at a game.
Thanks,
William. [import]uid: 88841 topic_id: 29863 reply_id: 329863[/import]