The Daily Click ::. Forums ::. Klik Coding Help ::. FPS camera code?
 

Post Reply  Post Oekaki 
 

Posted By Message

W3R3W00F

Drum and Bass Fueled Psycho

Registered
  08/11/2008
Points
  372

VIP MemberCardboard BoxThe Cake is a Lie
19th September, 2010 at 06:29:18 -

With the Mode 7 ex object I'm doing a little "for fun" fps project. The problem is I have no clue how to make the camera follow the mouse. Would anyone know how to code this using the Mode 7 ex object?

Another question- should I use the Mode 7 ex object or the Raycasting extension to make an fps?

Thanks in advance!

 
An old and washed up once-kid

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
19th September, 2010 at 22:51:19 -

you would be better off using the raycasting object.

you can do mouse movement in the mode7ex object like so.

you need:
-mode7ex
-mouse object

+always
-hide windows pointer
-mode7ex: set rotation( y ) angle to Rotation( "Mode 7 ex" )-(((framewidth/2)-XMouse))
-mouse object: set MouseX to MouseX( "Mouse object" )-XMouse+(framewidth/2)
-mouse object: set MouseY to MouseY( "Mouse object" )-YMouse+(frameheight/2)

Edited by Cecilectomy

 
n/a

W3R3W00F

Drum and Bass Fueled Psycho

Registered
  08/11/2008
Points
  372

VIP MemberCardboard BoxThe Cake is a Lie
20th September, 2010 at 01:35:00 -

Awesome, works great. Thanks Cecil! But I guess I'll use the raycaster instead once I get my hands on it.

 
An old and washed up once-kid

nim



Registered
  17/05/2002
Points
  7234
20th September, 2010 at 02:21:09 -

Is the Raycaster released outside of Klikdisc yet, or ever going to be released?

 
//

W3R3W00F

Drum and Bass Fueled Psycho

Registered
  08/11/2008
Points
  372

VIP MemberCardboard BoxThe Cake is a Lie
20th September, 2010 at 04:52:00 -

As far as I know, I don't believe the raycaster extension has been released outside of Klikdisc yet, or if ever. But that'd be awesome. Or if someone could make a raycaster widget...

 
An old and washed up once-kid

Marko

I like you You like you

Registered
  08/05/2008
Points
  2804

Has Donated, Thank You!Game of the Week WinnerVIP Member360 OwnerDos Rules!Happy FellahCrazy EvilI am an April FoolGingerbread House
20th September, 2010 at 06:54:03 -

I'm interested in seeing your FPS W3R3W00F, when it's finished

 
Image

Subliminal Dreams. . ., daily gaming news and the home of Mooneyman Studios!
www.mooneyman-studios.webs.com

W3R3W00F

Drum and Bass Fueled Psycho

Registered
  08/11/2008
Points
  372

VIP MemberCardboard BoxThe Cake is a Lie
22nd September, 2010 at 06:19:54 -

Cheers, Marko! It may be a while before I can start though... I got the Raycaster today, but still have absolutely no clue how to get it to work properly. A tutorial for it would be nice right about now...

Also whatever happened to Klikdisc? It just came to stop in April.

 
An old and washed up once-kid

Johnny Look

One Happy Dude

Registered
  14/05/2006
Points
  2942

VIP Member
24th September, 2010 at 03:51:07 -

I never really understood the point of klikdisc in the first place...
I mean 10 to 15 years ago it would probably still make sense, but right now it's just a CD with mostly useless and/or uninteresting stuff in it that could simply be available for download and perhaps charged for (though honestly I never saw anything on it that I would pay for, but that's just me).

Also the decision to release the raycaster object exclusively on the klik disc is even more mystifying to me, but well he made it so he can do whatever he wants with it I guess.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click