This just helped me out SO much, thx a lot!
PICO-8: Checking for Overlap
Log in with itch.io to leave a comment.
THANKS A LOT! this saved me a lot of frustration :P
Thanks for this! One note for anyone who sees this code in the future: with this code, an 8x8 sprite has a width/height of 7. If you want to treat the width/height as 8, subtract 1 from the width and height in each of the lines above when comparing
This is wonderful, thanks! The function both makes perfect sense _and_ does everything I want. I have put a thank you and a link to this cart in my code comments.
This is super helpful!