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.

3 Dimensional Chat / I need some help over here!!!

Author
Message
j4cK4zz
21
Years of Service
User Offline
Joined: 22nd Dec 2002
Location: Norway
Posted: 7th Mar 2003 19:29
Hi. how are you?
I need help on three things.

1) mouselook
I wrote a code like this:

but then I realised this was not the code i wanted... since,
well, the mouselook works but, when I look up and walk, the cam move upwards instead of forwards..

what is that code to move forwards when you look up or down, instead of "flying around"???

2) strafing
how can I make the camera strafe???
i wrote:

and the same to rightkey().
but the cam moves forward instead. is there another code??

3) aim
how can I make a cross in the middle of the screen that follows the camera when you turn and that..
i wrote:


(it not the whole code, but anyway) is that correct?? or do you have a nothe code... because this is not working.
Kjetil
21
Years of Service
User Offline
Joined: 15th Jan 2003
Location: Norway
Posted: 7th Mar 2003 21:47
you have to rotate the camera then move the camera then rotate the camera back again in the same line

something like this i think


- Kjetil
Kjetil
21
Years of Service
User Offline
Joined: 15th Jan 2003
Location: Norway
Posted: 7th Mar 2003 21:48
strafing, that was

- Kjetil
j4cK4zz
21
Years of Service
User Offline
Joined: 22nd Dec 2002
Location: Norway
Posted: 9th Mar 2003 14:06
OK THANX!!!
dont worry about that aim thing... I found it out just make the image a sprite and position it in the middle of the screen (HEHEHEHE ,that easy)
I desided to not be able to look up or down... umm.. now there are two new problems...

1) collision with objects...
when I collide with a house it just goes straight throught it.. even though I wrote a code like

how can I make the player stop when colliding with the house?

2) when i pick up a pistol..(in the game ofcourse)
it positions itself on the correct position.. but when i turn the mouse to look left or right, it moves left or right but it doesn't follow the camera...
whats wrong??
Xoid
21
Years of Service
User Offline
Joined: 8th Mar 2003
Location:
Posted: 9th Mar 2003 19:13
This is what I use for walking, looking, strafing, hope it helps

j4cK4zz
21
Years of Service
User Offline
Joined: 22nd Dec 2002
Location: Norway
Posted: 9th Mar 2003 19:41
A!! great!! I'll try it.
never mind that pistol pickup thing. I found it out also...
just glue it to the player, and then rotate the player with the mouse. the pistol will follow!!! yhea.. that wasn't so hard...

I only need Help on the collision thing now....

Oh!! I forgot to tellya This is an First Person Game!

Login to post a reply

Server time is: 2024-04-20 12:25:11
Your offset time is: 2024-04-20 12:25:11