how can i get a position some cells in front of my actor?
example: for rotation = 90, distance = 3 he would return getY()+3 (but in int)
thats the code i need it for
int targetX = 22;
int targetY = 10;
Activating act1 = new Activating();
Activating act2 = new Activating();
Beam b = new Beam();
public void act()
{
this.turnTowards(targetX,targetY);
getWorld().addObject(/*getRotation + 10*/);
}
