Collision Box Moves After Hitting A Wall?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
Heatso
Prole
Posts: 1
Joined: Fri Jul 12, 2019 8:07 pm

Collision Box Moves After Hitting A Wall?

Post by Heatso »

My enemy has a collision box for detecting when it has been striked. Whenever the enemy bounces off the wall, it changes position. I don't know why. How can I keep it put?
I have a debug option (show collision boxes) in the variable initialization of the objects.
Attachments
main.lua
(659 Bytes) Downloaded 218 times
enemy.lua
(1017 Bytes) Downloaded 219 times
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests