Detect Mousemovement, lock mouse axis.
Greetings,
Can anyone give an example how to do this: 1: Lock a player's mouse axis, so he can't look up nor down. 2: Detect mouse movement, if mouse moved to the left or the right, and if so, change the players move direction to the corresponding direction. Basically I want it so that you can't pan around or anything, only move left, right on a straight line. (Think of a sidescroller game). Right now I'm in a third person side-view. Would also like if it was possible to change aim direction, so instead of shooting at the wall, aim would be locked to either left or right. [IMG]http://img8.**************/img8/5568/tfcsidescroll.jpg[/IMG] |
| All times are GMT -4. The time now is 19:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.