Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Ran into a Problem with my Tank Wars Game (Plz Help)

Author
Message
Skeletor
21
Years of Service
User Offline
Joined: 21st Jun 2004
Location: florida
Posted: 14th Jul 2004 08:38 Edited at: 14th Jul 2004 13:39
Hello,
I am currently Creating/Created a game where 2 tanks fight it out.



Now my Problem is in the way the tank fires. Okay in my Game I have the players control how far there shot will go by a unique Meters menu controlled by either the up and down arrows or W and S key. My Meters system works well for player 1 but for player 2 I run into a problem. What happens is the meter system works backwards for Player 2 so 100 meters will shoot the bullet as far as it can go and 640 meters will shoot it basically straight into the ground (640 meters is farthest you can shoot and 100 is the closest in my game). I have tried so many different ways but now I am just completely confused and hopeing there is a simple way to fix this.

Skeletor
21
Years of Service
User Offline
Joined: 21st Jun 2004
Location: florida
Posted: 14th Jul 2004 13:31 Edited at: 14th Jul 2004 13:39
I have fixed my problem!!!!!
With a Pen, Clipboard, and peice of paper I thought how my program works and decided I needed to convert player 2s meters to something that closely resembles player 1s meters. All I had to add was add




and Add another variable to my Meters array and change under the Player 2's firing control


with the Meters(3) instead of Meters(2).


Im glad I payed attention in Math Class

Login to post a reply

Server time is: 2026-06-09 19:41:09
Your offset time is: 2026-06-09 19:41:09