Note: If the game freezes, simply restart it by pressing the green flag CONTROLS [ M ] - Toggle music ON/OFF [ N ] - Toggle SFX ON/OFF Swag Tanks is a multiplayer game for 2 players based on the classic game "Tanks" that I used to play back in the days. Your goal is to destroy your opponent using a variety of weapons and power-ups that you can buy in in the shop. Every now and then a care package will be dropped from the sky, shoot the box to obtain its content. Fun fact: This is my first project using the "tick" scripting method! Hopefully that will make it run smoother on more devices.
Many thanks to @Yllie for a great, fun, original game! Played this a lot recently, and had a great time, but decided the sliders for angle and power could be greatly improved. Problem&Solution 1: The sliders changed size when clicked. Although this was neat, it disorientates you when your trying to make a small adjustment, a central component of playing this game well. So I removed the size change. Problem&Solution 2: The sliders jumped when clicked, moving so that (slider x)=(mouse x). This was very frustrating, often messing up crucial shots. Now I have added a variable, "DIFFERENCE". When a slider is first clicked, DIFFERENCE is set to (slider x)-(mouse x), (thus the name), and after that, instead of the slider x being set to the mouse x until the mouse is released, the slider x is repeatedly set to (mouse x)+(DIFFERENCE); problem solved. Note that if the slider now happens to jump by a pixel or two occasionally, for seemingly no reason, it will not affect your angle or power, it is simply the result of the slider x being updated after some variable rounding, and, as far as I can tell, will not affect play.