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

[PV] Trying to change jump hight


lexkymbeth
 Share

Recommended Posts

[Project Vertigo]
Well i think i found it but i have no clue trying to chane the jump hight to 2 since it jumps 4 blocks. this is the code i think it mite be but i dont wana mess any thing up!

```

Select Case GetPlayerInertia(Index)
        Case DIR_UP
            Player(Index).YOffset = Player(Index).YOffset - InertiaSpeed
            If Player(Index).YOffset < 0 Then Player(Index).YOffset = 0

        Case DIR_DOWN
            Player(Index).YOffset = Player(Index).YOffset + InertiaSpeed
            If Player(Index).YOffset > 0 Then Player(Index).YOffset = 0
    End Select

```
or this,
```
    ' Check if player is walking, and if so process moving them over
    Select Case Player(Index).inerting
        Case INERTING_NORMAL: InertiaSpeed = ((ElapsedTime / 1000) * (NORMAL_VELOCITY * SIZE_X))
        Case INERTING_WATER: InertiaSpeed = ((ElapsedTime / 1000) * (WATER_VELOCITY * SIZE_X))
        Case Else: Exit Sub
    End Select
```
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...