Between this reply and the previous one I fixed the problem, thank you so much!!dusoft wrote: ↑Thu Jan 23, 2025 6:59 pm Instead ofyou need to require your file.Code: Select all
local mainMenuScene = love.filesystem.load ('main_Menu_Scene')
https://www.lua.org/pil/8.1.html
Search found 3 matches
- Thu Jan 23, 2025 9:00 pm
- Forum: Support and Development
- Topic: pls help
- Replies: 4
- Views: 120
Re: pls help
- Thu Jan 23, 2025 8:58 pm
- Forum: Support and Development
- Topic: pls help
- Replies: 4
- Views: 120
Re: pls help
"mainMenuLoad" is a local function and since your function is not global it cannot be accessed outside of your "main_menu_scene.lua" file. You need to learn how to write Lua modules. Also, try to use more descriptive topic titles in the future. Thank you!! I will sit and learn a...
- Thu Jan 23, 2025 5:48 pm
- Forum: Support and Development
- Topic: pls help
- Replies: 4
- Views: 120
pls help
Hello! I'm new to game development and to love2d, and I have a problem that I don't know how to solve. I'm trying to manage different scenes in my game by just loading a file that has all the functions that go into the love.load, love.update and love.draw, and then putting an if statement in each of...