Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
How do I set head-turn limits? for first-person game
Old
matrumz
Guest
 
Status:
Posts: n/a
Question How do I set head-turn limits? for first-person game - 09-28-2010, 09:13 AM

I am trying to make a first person shooter, but I can't seem to get my guy's head to stop at a natural angle. In other words, I don't want it able to do a 360. Same with the up/down axis
   
Reply With Quote
Old
SirThorfinn
Senior Member
 
SirThorfinn's Avatar
 
Status: Offline
Posts: 232
Join Date: Sep 2010
Location: Some where Unreal!
Smile 09-28-2010, 03:58 PM

I didn't create this but it works good for FPS...

MouseLookingExample (1).a2w

Hope this will help you find your problem
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 976
Join Date: Sep 2009
Location: United States
Default 09-28-2010, 05:25 PM

Hey, I made that

And it is what I use in all of my first person games and examples, it is a very good non-python method.

By the way, the 0 in there, when the variables are being multiplied by 0, it is not actually 0, its a very small number more like 0.001 for vertical or 0.0007 for horizontal that just appear as 0 because Alice does not want to display such a small number. If you just put "0" in for that number, you will find that the code will not work and you will just be moving the mouse with no results.


Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301

Last edited by Dameria; 09-28-2010 at 05:27 PM.
   
Reply With Quote
Old
debussybunny563
Senior Member
 
debussybunny563's Avatar
 
Status: Offline
Posts: 852
Join Date: May 2010
Thumbs up 09-28-2010, 05:27 PM

Quote:
Originally Posted by Dameria View Post
Hey, I made that
Yes you did.


And an enhanced version is being worked on.


Last edited by debussybunny563; 12-21-2012 at 12:00 AM.

|--------------------------------------------------------------------------------------------------|
|Link to weapons collection: http://www.alice.org/community/showthread.php?t=7368 |
|--------------------------------------------------------------------------------------------------|

I have been dead for quite some time now; not much hope for resurrection.
   
Reply With Quote
Reply

Tags
camera, firstperson, limit, view

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.