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.

Newcomers DBPro Corner / DarkMATTER and regular objects

Author
Message
Allanon Shadeslayer
17
Years of Service
User Offline
Joined: 28th Dec 2006
Location:
Posted: 22nd Jan 2007 23:50
I'm working on making a 2 player tank game.

Here is the code I currently have


I can't get the boundary cubes to stop the tanks from going off into space. the tanks colide fine but the boundaries don't.

Also, Reguardless of where the tank is it always seems to go under the cubes and the player 2 tank.

Any help would be appreciated Thx!

I don't suffer from laziness... I enjoy every minute of it!
Allanon Shadeslayer
17
Years of Service
User Offline
Joined: 28th Dec 2006
Location:
Posted: 23rd Jan 2007 00:34
nvm I fixed it!

I don't suffer from laziness... I enjoy every minute of it!
Kieran
18
Years of Service
User Offline
Joined: 6th Aug 2006
Location: Hamilton, New Zealand
Posted: 23rd Jan 2007 00:40
you mind sharing the code you used to show it in case anyone else had the same problem?

Allanon Shadeslayer
17
Years of Service
User Offline
Joined: 28th Dec 2006
Location:
Posted: 23rd Jan 2007 00:54
Well, I figured out that the issue of the tank going under the cube was an issue of camera range. I fixed it by changing the camera range from 0,5000 to 1,5000. And as for the collision, it was just yet another one of my stupid positioning mistakes

I don't suffer from laziness... I enjoy every minute of it!
Kieran
18
Years of Service
User Offline
Joined: 6th Aug 2006
Location: Hamilton, New Zealand
Posted: 23rd Jan 2007 00:59
oh, an easy mistake i made a mistake like that once too lol

Allanon Shadeslayer
17
Years of Service
User Offline
Joined: 28th Dec 2006
Location:
Posted: 24th Jan 2007 01:41 Edited at: 24th Jan 2007 01:42
Uh, oh. I ran into another problem. I can't go outside the boundaries I set going forward but I can maneuver myself out of the boundaries while going backwards.

Here is my updated code


Is there a way to divide my tanks into two collision zones? I think that might help.

I don't suffer from laziness... I enjoy every minute of it!
Allanon Shadeslayer
17
Years of Service
User Offline
Joined: 28th Dec 2006
Location:
Posted: 25th Jan 2007 23:45 Edited at: 25th Jan 2007 23:48
Does anyone have any Ideas?

If at first you don't succeed, lower your expectations

Login to post a reply

Server time is: 2024-09-25 17:27:16
Your offset time is: 2024-09-25 17:27:16