So guys, i’m creating a very simple tower defense game, were a bunch of monster walking in the tower direction and the player can shoot at them.
I was getting a problem with the monster collision, cause when two monster get to the destination they start to stack up, so i was trying to stop the monster from colliding with which other and i come up with this:
function monstro:preCollision(event) if(monstro.type == "monstro") then event.contact.isEnabled = false end end
Now i have two problems, when the monsters collide with which other during the walk, the bullets cannot collide with them, plus when the transition.to is over, the monster fall off the screen, because they don’t collide with the floor anymore.
What should i do?