Example #1
0
 public void OnGround(Tile tile)
 {
     // Check if state is being thrown
       if (AnimationState == AState.Thrown) {
     Velocity.X = 0;
     Velocity.Y = 0;
       } else if (VerticalState != VState.Jumping) {
     SetY (tile.HitBox.Top - (Dimensions.Height - HitBox.Height));
     Velocity.Y = 0;
     VerticalState = VState.OnGround;
       }
 }
 public void OnGround(Tile tile)
 {
     if (VerticalState != VState.Jumping) {
     SetY (tile.HitBox.Top - (Dimensions.Height - HitBox.Height));
     Velocity.Y = 0;
     VerticalState = VState.OnGround;
       }
 }