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 / Strafing problem

Author
Message
MechaShadow
21
Years of Service
User Offline
Joined: 25th Oct 2002
Location:
Posted: 29th Jun 2003 03:26 Edited at: 29th Jun 2003 03:27
I followed the tutorial on the main site and when I try and add strafing to my engine it wont move. It does the turn left/right method of movement ok though.



ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 29th Jun 2003 13:17
here you go, this combines 3rd person strafing and mouselook


hi guys
MechaShadow
21
Years of Service
User Offline
Joined: 25th Oct 2002
Location:
Posted: 29th Jun 2003 17:05
Thanks, I will revive this thread if I need any more help unless that is against the rules?

ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 29th Jun 2003 20:14
nope just keep asking here, its probably better to ask all your q's in one thread than post lots any way!

hi guys
MechaShadow
21
Years of Service
User Offline
Joined: 25th Oct 2002
Location:
Posted: 29th Jun 2003 22:25
OK, I have read the tutorials on the main site and I don't think thier method of collision detection works with this engine. Do I have to do it differently when I'm using a strafing type of engine

ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 29th Jun 2003 22:30
just using the object collision commands should work
at the beginning of your loop you need variables called oldx,oldz these have to equal the current x and z so:

oldx#=x#
oldz#=z#

then nearer the bottom of the loop put

if object collision(10,0)
x#=oldx#
z#=oldz#
endif

hope that helps

hi guys

Login to post a reply

Server time is: 2024-05-20 11:58:34
Your offset time is: 2024-05-20 11:58:34