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.

DarkBASIC Discussion / Running phase help

Author
Message
wbarrett 26
21
Years of Service
User Offline
Joined: 6th Feb 2004
Location: New Jersey
Posted: 11th Feb 2004 05:29
I was wondering if anyone knew how to make a first person appear to be running, ie. camera moving up and down as I move forward.
I tried to use the wrap value with the sine function but every time it gets close to about 360 degrees the camera is placed extremly high aboue the matrix. here is the running code segment:


if more info is needed let me know, thanks
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 11th Feb 2004 06:42
Quote: "w#=w#+12"


Change that to;

If w# < 360 Then w# = w# + 12 Else w# = 0

That should fix up your problem, as it now will only go from 0 to 360, and you can change it so that if you only want it to go to 180 you can have it that way etc.

Hope I Helped...
Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
look i am a newb
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location:
Posted: 11th Feb 2004 07:41
very dumb of me. all i had to do was remove the wrapvalue. i confused it with the angle command used to rotate the camera.
i included a little example of what i wanted in my game. I didnt want to put my full game code in b/c its like 30x the screen height

wbarrett 26
21
Years of Service
User Offline
Joined: 6th Feb 2004
Location: New Jersey
Posted: 11th Feb 2004 07:49
i really should check if my little bro has signed in, otherwise you guys will think i have multiple personalities
wbarrett26 = me

Login to post a reply

Server time is: 2025-05-22 19:07:37
Your offset time is: 2025-05-22 19:07:37