newRectangleCollider wall acting...weird
Posted: Thu Sep 21, 2023 11:18 pm
I'm learning LOVE, following video tutorials (currently on this one from Challacade, https://www.youtube.com/watch?v=dZzAxYr ... x=8&t=491s) and I've hit a figurative wall, literally. I've double checked the code with the tutorial, and it's the same, save for what sprites I'm using and the keys for movement (I prefer wads vs arrow keys). As you can see from the video below, when the code: is commented out, it works fine. Once it's back in it generates infinite rectangles and pushes them out endlessly. It's fun to watch, but it doesn't help me with collisions. My main question is; why is it creating other rectangles? My follow up is, how do I make it work?
Video: https://www.youtube.com/watch?v=ffdi_ODMGUo
Code: Select all
local wall = world:newRectangleCollider(100, 200, 120, 300)
Video: https://www.youtube.com/watch?v=ffdi_ODMGUo