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 .
CanYouReply
Prole
Posts: 10 Joined: Sat May 16, 2020 7:33 pm
Post
by CanYouReply » Sat May 30, 2020 6:38 am
Another question - is there any need to use the 'break' in this loop ? is there a specific reason for this ? I can see If I don't use 'break' here it still works perfectly.
Code: Select all
if CheckCollision(x, y, 0, 0, v.x, v.y, v.width, v.height) then
inside_small_boxes = true
break
end
4vZEROv
Party member
Posts: 126 Joined: Wed Jan 02, 2019 8:44 pm
Post
by 4vZEROv » Sat May 30, 2020 8:11 am
If you click on the first small boxe you don't need to check if you clicked on the 2 others.
Users browsing this forum: Bing [Bot] , Google [Bot] and 5 guests