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 Professional Discussion / some questions regarding mouse look and the character controller..

Author
Message
Lover of games
21
Years of Service
User Offline
Joined: 17th Apr 2005
Location:
Posted: 30th May 2010 08:35
Yes, i know that's for DP forums but i need to know how to do mouse look and how to strafe left and right as the CC only moves up down.

here's my code:



and here's the CC code


any advice would help.

"Originally I was going to have a BS on it but you know how that would be. I can't walk around with the letters BS on me." More or less a qoute by Syndrome from Jack, Jack, attack
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 1st Jun 2010 15:08
@imekon gives a strafing example in this thread:
http://forum.thegamecreators.com/?m=forum_view&t=87201&b=30

As for the mouselook problem it's hard to say, maybe a working example might help. I'm not sure exactly what the problem is from your code and explanation. The mouse look code seems OK at a glance, does it not work?

Lover of games
21
Years of Service
User Offline
Joined: 17th Apr 2005
Location:
Posted: 2nd Jun 2010 06:18
Well, when you turn the camera up it's suppose to stop when u lift the mopuse up and stop when it's down and thanks for the strafing

"Originally I was going to have a BS on it but you know how that would be. I can't walk around with the letters BS on me." More or less a qoute by Syndrome from Jack, Jack, attack
Lover of games
21
Years of Service
User Offline
Joined: 17th Apr 2005
Location:
Posted: 2nd Jun 2010 06:51
here is a working example of mouse look (or lack there of)

"Originally I was going to have a BS on it but you know how that would be. I can't walk around with the letters BS on me." More or less a qoute by Syndrome from Jack, Jack, attack
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 2nd Jun 2010 10:31
Just change this line:


...to this:


Hey presto!

Lover of games
21
Years of Service
User Offline
Joined: 17th Apr 2005
Location:
Posted: 2nd Jun 2010 13:38


that didn't really work

"Originally I was going to have a BS on it but you know how that would be. I can't walk around with the letters BS on me." More or less a qoute by Syndrome from Jack, Jack, attack
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 2nd Jun 2010 13:45
That's not the code you posted...



This is the snippet you posted (and the one I edited!!)

Lover of games
21
Years of Service
User Offline
Joined: 17th Apr 2005
Location:
Posted: 2nd Jun 2010 13:52
THANKS works good now

"Originally I was going to have a BS on it but you know how that would be. I can't walk around with the letters BS on me." More or less a qoute by Syndrome from Jack, Jack, attack
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 2nd Jun 2010 14:13
Glad I could help!

Login to post a reply

Server time is: 2026-07-25 10:52:25
Your offset time is: 2026-07-25 10:52:25