Raised This Month: $51 Target: $400
 12% 

Detect Mousemovement, lock mouse axis.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
teh ORiON
Member
Join Date: Sep 2011
Location: Denmark
Old 09-22-2011 , 12:13   Detect Mousemovement, lock mouse axis.
Reply With Quote #1

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]
teh ORiON is offline
Reply



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


All times are GMT -4. The time now is 10:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode