I set my bullet to move(50) it means that my bullet flye every frame by 50 cells and if my enemy is between tose 50 cells the bullet doesnt hit him it flyes away how to fix this?
for (int n=0; n<5; n++) move(10);
for (int n=0; n<5; n++) move(10);