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

[Bug Fix] Correction Player Movement


Valentine90
 Share

Recommended Posts

**Sorry my english**

There is a simple error in the movement of the player, when the first step to player, your legs not move.

**Open Client**

**1 -** In **modGameLogic**, look for:

```
' Check if player is walking, and if so process moving them over

Select Case Player(Index).Moving

Case MOVING_WALKING: MovementSpeed = ((ElapsedTime / 1000) * (RUN_SPEED * SIZE_X))

Case MOVING_RUNNING: MovementSpeed = ((ElapsedTime / 1000) * (WALK_SPEED * SIZE_X))

Case Else: Exit Sub

End Select
```

**2 -** Below add:

```
If Player(Index).Step = 0 Then Player(Index).Step = 1
```

The ProcessMovement not work with Step 0, works only with the number 1 on, then as it is automatically declared as 0 just going that little problem.

**Credits:**

Valentine
Link to comment
Share on other sites

  • 4 weeks later...

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...