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
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 8th Oct 2005 23:52
I've asked some pretty bizarre here before, but this one makes me feel like a right numpty... I've been working on an FPS now for near on 9 months, and still I've done hardly anything...

With some basic movement controls implemented, I realized "how do you do strafing?" Easy if you don't rotate on the Y axis, but as with most FPS games, you do...

I'm reading the help pages, and looking towards newxvalue, newzvalue... Are these the right commands, and if so, how do I use them?

I would appreciate any help on this...

...maybe one day I'll finish a project
Peter H
21
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 9th Oct 2005 00:44
to strafe right...

rotate your thing to the right 90 degrees...
move it however far you want to strafe
rotate your thing back to the left 90 degrees...

just rotate in the other direction for the left of course..

"We make the worst games in the universe."

SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 9th Oct 2005 00:54
Thanks for that - but I feel like an even bigger numpty, JessTicular answered this 15 months ago and I didn't look back that far...

Sorry guys - broke the golden rule... check before you post

...maybe one day I'll finish a project
Sonic 91 Software
20
Years of Service
User Offline
Joined: 19th Mar 2005
Location: In a Cryptic Crossworld!
Posted: 14th Nov 2005 10:32
Quote: "Thanks for that - but I feel like an even bigger numpty"


er..., numpty?

I am a Christian and I know that God loves me. That is what makes my life so great!
HWT
20
Years of Service
User Offline
Joined: 1st Apr 2005
Location: Earth
Posted: 14th Nov 2005 13:12
Hi there

Quote: "JessTicular answered this 15 months ago and I didn't look back that far..."


Anyway, here's a small code for strafing - hope it helps (a little at least)



If you need me to walk you through - don't hesitate to ask

HelloWorld Tommorrow
Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 14th Nov 2005 13:23
I submitted strafing here:

http://galekus.com/downloads.php?cat_id=7
Captain America
20
Years of Service
User Offline
Joined: 8th Apr 2005
Location: Here
Posted: 16th Nov 2005 02:43
Once again HWT to the rescue!

i was looking for a thread that contained this topic, and what i found made my head spin! it was way over my head, and i did not understand the basic concept of how they did it!
but the code you provided made absolute perfect sense!

thanks again!

-Captain-


Cheers,
Capt. America

Login to post a reply

Server time is: 2025-05-23 00:17:28
Your offset time is: 2025-05-23 00:17:28