Thank you for helping me with the previous issue, but I have another problem with my project. I am trying to make it so, that the projectile is given an initial angle and velocity, after which it travels accros the screen, and then disappears. I am also however planning on including gravity and air resitance into the program, but my previous attempts have failed. Can somebody explain please with examples, that how can I make my program work? I have been trying to use trigonometry and setLocation functions, but they haven't helped me.

