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.

Author
Message
Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 12th Jun 2005 00:50
I am working on a car game... with boxes... and I have a matrix put down with lines. Heres the code itself so far (please don't comment on how crappy it is so far )


The thing is, I want to add a texture to the lines(the matrix) I currently have. I will pick out the texture myself, but I just need to know how.

And how do you make it that you can't get off the matrix?

Enjoy Life while your still alive.
Enjoy a recees anytime!
Evil Inside
19
Years of Service
User Offline
Joined: 1st Jun 2005
Location:
Posted: 12th Jun 2005 01:13
You have some problems with this:

1. When you go into some cubes, the cube that
you ran into dissappears.

2. On the second go, when you go into a cube, it crashes!


-- Amazing Isn't It? --
Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 12th Jun 2005 03:49
Uhmm..
1.The dissapearing box thing was done purpossly...

2. can you just help me with what I asked?

Enjoy Life while your still alive.
Enjoy a recees anytime!
Link102
20
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 12th Jun 2005 07:07 Edited at: 13th Jun 2005 00:06
Here's the texure code:


I'm still working on the boundries code.
edit:

I found the perfect code ^_^

it checks if the player is out of the matrix range and if so, it moves it back asmuch as it moves it forwards.
Keep in mind that you've moves the martix down so it looks like its being stoped on the z axis whilst stil being on the matrix.

BTW:
change this:


to this:


and put this before the main loop and after the checkpoint creation code


please reply
Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 12th Jun 2005 07:10
thnx dude.

Enjoy Life while your still alive.
Enjoy a recees anytime!
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 16th Jun 2005 04:18
I recognise this code you wrote. It's from another thread...

Immunity and Annihalation makes Immunihalation...
Link102
20
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 17th Jun 2005 01:52
Is that at me or GreenFox

please reply
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 17th Jun 2005 03:11
GreenFox...

Immunity and Annihalation makes Immunihalation...
Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 17th Jun 2005 04:15
Yeah it is, its a very good inspiration to a newbie

Should I mention where I got the code from in the future?

Enjoy Life while your still alive.
Enjoy a recees anytime!
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 17th Jun 2005 05:23
I suggest you do.
To show some respect for the original coder

Immunity and Annihalation makes Immunihalation...

Login to post a reply

Server time is: 2025-05-22 21:28:06
Your offset time is: 2025-05-22 21:28:06