Please help! Collisions not working properly!
Posted: Sun Sep 13, 2020 9:41 pm
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!
I have attached my main.lua file, its all in there at the moment.
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!
I have attached my main.lua file, its all in there at the moment.