Alice Community

Alice Community (
-   How do I...? (
-   -   3D GTA style aiming and camera movement (

JAA 07-12-2010 07:56 AM

3D GTA style aiming and camera movement
I want the camera to be controlled like it is in any 3D GTA for the PC. Where the mouse pointer stays in the center of the screen and when you move the mouse side to side and up and down the camera moves accordingly. I know the same thing happens in Alice when you have the following event:
Allow mouse to control [camera]
...but it only works when the mouse is clicked down. Also, I made a world where when the mouse isn't at the center of the screen the camera turns but this isn't really what I'm looking for because the mouse doesn't stay centered.
Can someone show me how to make a world where the mouse controls the camera and cross hairs like it does in GTA?

Here's a thread where I attached my closest solution.

x2495iiii 07-12-2010 01:57 PM

Lot's of em already made:




jediaction 07-12-2010 01:58 PM

Yah, but good thing you made one

JAA 07-13-2010 12:40 PM

[QUOTE=x2495iiii;23051]Lot's of em already made:




Yea I already knew this before I tried to make my own. I really like Ch0pStickS solution (MCD.a2w) it's smooth and almost reminds me of Call of Duty for the wii. The problem is they all use the same technique where the screen moves based on how far away the mouse is from the top and left edge. After checking I realized that allowing the mouse to orient the camera does the same thing. Basically I want the mouse to remain center and when you move it the camera moves to. I really like how in GTA it was point and click shooting. Actually, I might have a solution, if it works I'll edit this post and up load it.

...1 hr later
Okay what I want to happen is while the mouse moves the camera turns in that direction, but when the mouse stops moving I want it to recalibrate. This way the screen will only move when the mouse is moving. Basically I want it to be exactly like Ch0pStickS solution, but instead of it calibrating when enter is pressed and the sphere is clicked, I want it to calibrate when the mouse stops moving. I'm having trouble with this; can someone help me figure it out?

All times are GMT -5. The time now is 06:54 PM.

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