i have a character, and when i press the mouse, a bullet is added into the world and this is the code.
if(turn == 0)
{
turnTowards(m.getX(), m.getY());
turn = turn +1;
}
if(turn > 1)
{
move(12);
}
this makes the bullet turn towards the mouse, then move forward.
But something weird keeps happening is that the bullet doesn't completely turn towards the mouse, it's off by a lot, and when i press underneath the character, it moves really slowly. can someone please help me i have no idea why it's doing this.
