Alice Community  

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

Thread Tools Display Modes
How do I set head-turn limits? for first-person game
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
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
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 ...................
Alice Paint ...........................
Real-Time Clock ..................
Maze Game .........................

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

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: |

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

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 ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.