lexkymbeth Posted March 19, 2012 Author Share Posted March 19, 2012 [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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now