There is another problem, you are testing equalities between the tank direction and an integer, it’s unlikely to happen, the tank direction is a float (I guess it rotates free, since you use the “rotate towards” action), it could be 179.976940474 while tries to rotates toward 180. You should test ranges (inequalities): Angle of tank > 175 and Angle of tank < 185
i have just realised the tank rotates to the set amount and then it sets the variable to move enemy so it will never have a different angle other than the ones i have defined.
if i rotate to ranges between angle 175 and 185 that will mean the enemy tank will always be at a funny angle when the tanks variable changes, i want the enemy tank to move in 4 directions, i am removing the 5th variable as it is not needed, but if my tank rotates towards angle 90 and i have a separate condition stating that once angle is 90 to move the tank using the designated variable, i dnt see how it can produce any other outcome unless someone wants to test my game to see what happens just ask and ill post the files, but from what i can see they rotate and move fine.
Maybe you won’t have a problem with how you write your code now. Maybe you will. Maybe you won’t, but a user of the game will. Or, you can just make a small range and never have a problem ever.
dnt get me wrong i am going to change it, i just couldnt work out how it wouldnt work but if people seem to think it myt be abit buggy then better changing it nw than havning to go bk and redo it
ok so i have now fixed that problem but it did throw a few errors into the works which i have managed to sort.
i now have it so if the tank is rotated >= 179.5 but <=180.5 to make the tank move, i was having problems when i had >=179 but <=181 because as the tank was starting to rotate it was still triggering the variable to move so i had to shorten the parameters.
Thanks everyone it is now smoother than a baby’s bum