Hi trying to make an effective gravity.
This code moves entity to 'ground' level at an increase rate, then it slowly sinks through ground.
Tried a couple of different ways just cant get it right, would appreciate some help:)
This code moves entity to 'ground' level at an increase rate, then it slowly sinks through ground.
Tried a couple of different ways just cant get it right, would appreciate some help:)
If EntityCollided(level, playerbox) = False; tests to see if collided with ground, if not increase gravity gravity# = gravity# + 0.1 EndIf ;Else ;If EntityCollided(playerbox, level) = true and gravity# > 0.0 If EntityCollided(level, playerbox) = True gravity# = 0.0 EndIf