Search found 3 matches

by Vandal
Thu Jan 23, 2025 9:00 pm
Forum: Support and Development
Topic: pls help
Replies: 4
Views: 120

Re: pls help

dusoft wrote: Thu Jan 23, 2025 6:59 pm Instead of

Code: Select all

local mainMenuScene = love.filesystem.load ('main_Menu_Scene')
you need to require your file.
https://www.lua.org/pil/8.1.html
Between this reply and the previous one I fixed the problem, thank you so much!!
by Vandal
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...
by Vandal
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...