Hello everybody! I am using a spritesheet to display an enemy character and an image to represent a bullet. the code I am using for collision detection is not working AT ALL and i was wondering what was wrong, it detects the enemy touching the floor but not the bullet they are both dynamic.
local function onCollision(self, event) if self.name == "bullet" and event.other.name == "soldier" then print("collision!") end end
I am just having it print a message if they touch but it never detects! Please Help!