the game state wont change

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Seth144k
Prole
Posts: 29
Joined: Wed Jan 19, 2022 8:45 pm

the game state wont change

Post by Seth144k »

So i'm actually getting pretty far with my game but for some reason im stuck on getting the state to change here is my love file. Also im so sorry for the unorganized code this is my first real game with Love2D and just a framework in general
Attachments
conf.love
(1.82 KiB) Downloaded 74 times
User avatar
nehu
Prole
Posts: 11
Joined: Fri Feb 25, 2022 1:12 am
Location: Argentina, Maybe under your bed

Re: the game state wont change

Post by nehu »

can you tell what is exactly the problem?
'getting the state to change' is not helpful :(

Code: Select all

for i, v in pairs(problems) do
	fix(v)
end
Seth144k
Prole
Posts: 29
Joined: Wed Jan 19, 2022 8:45 pm

Re: the game state wont change

Post by Seth144k »

i actually fixed it! I wanted to change game.state to where it wouldnt spawn in any more enemys but it wasnt working. I fixed it by using integers instead of strings as the states. But yeah I do think i couldve been a little more clearer sorry about that
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 10 guests