9
« on: January 06, 2015, 03:41:20 am »
I mean, I'm not forcing the mouse cursor to stay at the center of the screen. So the actor only follow y of mouse. Then the scrolling will be set from the xmouse of the xactor. For example
x of actor = 360 ( x-center of screen )
x of cursor = 500
so the power will be set base on the cursor distance with actor.
so, it will be 500 -360 /100 = 1.4 force
after that, the force will move the X of camera and the other example
x of actor = 360 ( x-center of screen )
x of cursor = 700
the result 700-360/100 = 3.4 force.
I wish it could explain what I wanted for. I've tried this, but always doesn't work. Thanks