Page 1 of 1

Catch those noodles Game - glitches with spawn intervals

Posted: Tue Dec 24, 2024 12:32 pm
by TheBowtieBoy
So I've recently tried implementing a feature so that every 2 seconds (will extend later on) it changes the "daylight" or window.png to the next one in the daylight table in the love.load function.

however now that the window works. if I raise the daylight interval any higher it stops working, but also now for some reason the "enemies" or noodles enemy doesn't work anymore as in they don't spawn.

I have attached the main.lua file :)

thanks,
Max

Re: Catch those noodles Game - glitches with spawn intervals

Posted: Wed Dec 25, 2024 7:01 am
by marclurr
You forgot to add the file but it sounds like you're probably drawing the background on top of your enemies so it's covering them. The order that things are drawn is important. Things drawn first will be covered by things drawn later, so draw your background first, then the enemies.