while and repeat loops still cause errors

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.
MrFariator
Party member
Posts: 544
Joined: Wed Oct 05, 2016 11:53 am

Re: while and repeat loops still cause errors

Post by MrFariator »

I don't think that's exactly a good use case for repeat-until loops. You'd rather just have some basic control flow (or callbacks, whatever suits the situation) so the entire game doesn't come to a screeching halt just to process a key stroke. Remember, if you have an infinite loop in love.update, you're not yielding control back to the rest of the application, which can make the whole thing seem unresponsive if not outright crash.
friendpicksd
Prole
Posts: 1
Joined: Thu Mar 11, 2021 3:02 am

Re: while and repeat loops still cause errors

Post by friendpicksd »

We need more people like you, Thanks! :awesome:
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 4 guests