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 / first person shooter help

Author
Message
Naisoft
20
Years of Service
User Offline
Joined: 24th Jan 2005
Location:
Posted: 10th Mar 2006 00:56
Hey everyone,
I have my mouse look and movement down, but I can't keep the gun in front of the camera. The Y rotation of the object is fine, but whenever I want to look up or down the gun does wierd rotations. I do not want to use the lock object on command for this. Any help would be greatly appreciated.
Thanks

I'm pilotianh
Zelda Mario Yoshi and Samus ROCK!!

Attachments

Login to view attachments
devastation
19
Years of Service
User Offline
Joined: 11th Aug 2005
Location:
Posted: 12th Mar 2006 00:58
look at the gun code in the source code in this:

[href]www.verydevastating.com/dmhsource.zip[/href]

trig can produce a better effect, but it's alot harder to impliment

the code in there puts the gun at the players spot and rotation, then rotates the gun on it's x axis depending on the player's x axis.

Your signature has been erased by a mod because it's larger than 600x120...
Naisoft
20
Years of Service
User Offline
Joined: 24th Jan 2005
Location:
Posted: 12th Mar 2006 01:19
Thanks a ton. I'll check it out now.

I'm pilotianh
Zelda Mario Yoshi and Samus ROCK!!
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 12th Mar 2006 13:02
after fix object pivot 2, put:

set object rotation zyx 2

Login to post a reply

Server time is: 2025-05-23 11:34:44
Your offset time is: 2025-05-23 11:34:44