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

WASD Problems.


sir zach
 Share

Recommended Posts

Shouldn't this work, like, honestly.

```
            If KeyCode = vbKeyUp Or KeyCode = vbKeyW Then
                DirUp = True
                DirDown = False
                DirLeft = False
                DirRight = False
            End If

            If KeyCode = vbKeyDown Or KeyCode = vbKeyS Then
                DirUp = False
                DirDown = True
                DirLeft = False
                DirRight = False
            End If

            If KeyCode = vbKeyLeft Or KeyCode = vbKeyA Then
                DirUp = False
                DirDown = False
                DirLeft = True
                DirRight = False
            End If

            If KeyCode = vbKeyRight Or KeyCode = vbKeyD Then
                DirUp = False
                DirDown = False
                DirLeft = False
                DirRight = True
            End If
```
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...