how do i make it so it checks to see if say enemy hits player?
if enemyx==playerx and enemyy==playery then
enemyxmove = math.random(4)
enemyy = math.random(272)
enemyx = 450
lives = lives-1
that doesn't seem to work so is there some special way to say and or hittest or what?