RnBoy15 Posted July 19, 2008 Share Posted July 19, 2008 Hello again So, i have a problem again ) yeah.. I'm learning how to write scripts and I know more and more because you guys are helping me The problem is i don't know if there exists a code for checking if my charactor is moveing right, left... I mean when my Caractor is moveing is there a code for checking if I turn him right or left whit my mouse?... plz, If you can write me a code that checks it, write 1 for me and i swear I will publish my mod gona be cool Link to comment Share on other sites More sharing options...
_VaNkAtA_ Posted July 19, 2008 Share Posted July 19, 2008 It will be really bad, just because the camera is rotating with the mouse. Link to comment Share on other sites More sharing options...
RnBoy15 Posted July 19, 2008 Author Share Posted July 19, 2008 It will be really bad, just because the camera is rotating with the mouse. yeah i know that but trust me Link to comment Share on other sites More sharing options...
Wesser Posted July 20, 2008 Share Posted July 20, 2008 I'm sorry. The only way is to press respectively left, right, up or down (I didn't try if these two last directions works) and I don't know if it is possible also with mouse buttons. You can get the intensity of pressure of a button (maybe I'm wrong) by an opcode. 0494: get_joystick 0 data_to [email protected] [email protected] [email protected] [email protected] If you check the first parameter as -100 you'll get the left button, if you check it as 100 you'll get the right button. This probably works with the second parameter (-100 - up, 100 - down). With the word "check" I mean that you must use a conditional like in this example. if -100, 100 > [email protected], [email protected] jf @label_name 012 345 678 9A BCD EFG HIJK LMN OPQR STUV WX YZ 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