Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

RUN Question.


AfterDawn
 Share

Recommended Posts

how can i edit in the source the run.
normaly when the character runs, it needs to press hold+shift key. but i want to change it to just press the R (letter) then it will run, and i will press again the R (letter) to walk or back to normal.

Anyone??
Link to comment
Share on other sites

Hmmm…
Make new variable called Run.
Then In Sub CheckInput add:   
```
If KeyCode = vbKeyR Then
                If Run = False Then
Run = True
Else
Run = False
End If
            End If
```And Then in Sub CheckMovement()
change If ShiftDown Then to If Run = True Then
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...