

- Code: Select all
if (Auto_Pilot == 1)
{
if (angle > direction(x, y, Coin.x, Coin.y)+ 5)angle -= 5;
if (angle < direction(x, y, Coin.x, Coin.y)- 5)angle += 2;
if (angle == direction(x, y, Coin.x, Coin.y))angle = direction(x, y, Coin.x, Coin.y);
That is what I have so far, the if (angle == direciot(Ect.) is to stabelise it once it faces the Coin so it will not shake when it faces the coin
