I remember reading through posts (I think it was the high score challenge) that a few people had issues with the enemies catching up with ladybug at corners and it got me thinking
Currently the collision logic is
But maybe this would be better ?
I'm testing this in my head and as far as I can see this will allow the collision test when ladybug and the enemy are on the same row or column but should completely disable collisions at corners
I'll write the code and see what happens![:rofl:]()
Currently the collision logic is
Code:
if (abs(enemyX - ladybugX) < ladybugEnemyRange)andif (abs(enemyY - ladybugY) < ladyBugEnemyRange)thenladybugKillCode:
if (ladybugX = enemyX) and if (abs(enemyY - ladybugY) < ladyBugEnemyRange)orif (ladybugY = enemyY) and if (abs(enemyX - ladybugX) < ladybugEnemyRange)thenladybugKillI'll write the code and see what happens
Statistics: Posted by lovebug — Tue Mar 11, 2025 1:27 am