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.
Please help! Collisions not working properly!
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Please help! Collisions not working properly!
- Attachments
-
- main.lua
- (5.4 KiB) Downloaded 310 times
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 1 guest