So this is what I got:
Bullet
if(active) {
Vector2f temp = speed.copy();
temp.scale(delta/1000.0f);
x += temp.x;
y += temp.y;
lived += delta;
if(lived > MAX_LIFETIME) {
active = false;
}
}else{
Game.ec.removeEntity(this);
}
Creation of bullet
if(gc.getInput().isMousePressed(Input.MOUSE_LEFT_BUTTON)) {
ec.addEntity(new BasicShot(c.getX(), c.getY(), new Vector2f(gc.getInput().getMouseX(), gc.getInput().getMouseY() + Display.getHeight())));
}
Where the c is the character and the such. When I shoot the bullet it doesnt shoot towards the mouse. It still changes direction when I move the mouse, but not directly towards it. Why? and how can I fix this?