Search found 2 matches

by ketmore
Sun Jul 10, 2022 9:11 pm
Forum: Support and Development
Topic: if statement fails randomly but works most times
Replies: 2
Views: 1664

Re: if statement fails randomly but works most times

Your code to reset the player is inside your enemy collision loop. If there are no enemies in the enemy list there that code will not be executed. Move this block of code underneath the enemy collision loop and it works better: if health == 0 then isAlive = false end --if not isAlive then isExplori...
by ketmore
Thu Jul 07, 2022 10:59 pm
Forum: Support and Development
Topic: if statement fails randomly but works most times
Replies: 2
Views: 1664

if statement fails randomly but works most times

Hello, im new on the forum and with love2d in general, but i have intermediate coding skills. So basically, I have expanded on a game that is made in the following tutorial: (http://osmstudios.com/tutorials/your-first-love2d-game-in-200-lines-exercises) I added many changes and features which u will...