I'm sure just about everyone here has played tanks before, but just for those who haven't: a random terrain is generated, then your tank is on one side and the opponents tank is on the other side and you take turns firing at each other.
When you shoot you chose "power" (F) and "angle" (G). This is my formula right now
F/100->K A+2->D (sets the location of the bullet to up two and over two from the tank B+2->E While 1 Pt-On(D,E D+KCos(G->D E+(F/100)Sin(G->E F-1->F End
This works perfectly and draws an arced shot according to your power and angle but as you can see it is on an unlimited loop. Pxl-Test does not work because the point is not at an even integer and even if i make it an integer it won't work because the point does not always move by more than 1 so it will Pxl-Test the point it just turned on. I also tried storing the entire surface of the terrain in a list but that was highly ineffective and memory consuming.