Please help! Collisions not working properly!

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.
Post Reply
Smae
Prole
Posts: 2
Joined: Tue Aug 11, 2020 1:47 pm

Please help! Collisions not working properly!

Post by Smae »

I recently added a string of code which creates boundaries, and they kinda work until a different button is pressed and therefore my Players hitbox just goes straight through, as well as the player sprite, which isn't whats meant to happen, the character sprite, as well as the hitbox, are meant to stop moving if they encounter an object.
The code is very all over the place, I may just have to end up rewriting it, but i'd appreciate answers to this query so I can improve on it! :awesome:
I have attached my main.lua file, its all in there at the moment.
Attachments
main.lua
(5.4 KiB) Downloaded 310 times
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 1 guest