Springfield Posted May 3, 2020 Share Posted May 3, 2020 Let me explain it in depth so everyone can understand: Is it possible to do do such things by movement of mouse? Like: If I move my mouse at upward direction then something will happen or if I move my mouse at downward direction then something will happen Just like you find in Amazing Screensot. Camera angle changes depends upon the movement of your mouse. Is there any trick or method to do so? Link to comment Share on other sites More sharing options...
In45do Posted May 3, 2020 Share Posted May 3, 2020 (edited) Yes it's possible with cleo script. First you need to store X and Y mouse movements with opcode 0A4A. Because they are contained as float variables, you need to convert them into integer variables with opcode 0092. This was done so it's easier for the script to read which move goes to the left, right, up, or down. It looks like this: Spoiler 0A4A: store_joystick_X_offset_to [email protected] Y_offset_to [email protected] 0092: [email protected] = float_to_integer [email protected] 0092: [email protected] = float_to_integer [email protected] :If_Up if [email protected] > 0 then .... :If_Down if 0 > [email protected] then .... :If_Right if [email protected] > 0 then .... :If_Left if 0 > [email protected] then .... Edited May 3, 2020 by In45do Link to comment Share on other sites More sharing options...
Springfield Posted May 3, 2020 Author Share Posted May 3, 2020 Hey, it worked. Thank you, brother. Link to comment Share on other sites More sharing options...
In45do Posted May 3, 2020 Share Posted May 3, 2020 (edited) No problem Edited May 3, 2020 by In45do Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now