GMS 2.3+ My player object is not in line with the ground when I program jumping animations

I have been trying to make a platformer game and learn how to use GML. When I start the game, my player object is not in line with the gorund.

What's happening:
Misplace.PNG

After I take out the section of code after "//Animations":
Good.PNG

GML:
// Vertical Collision
if (place_meeting(x,y+vsp,WOLL))    {
    while (!place_meeting(x,y + sign(vsp),WOLL))    {
        y = y + sign(vsp);
    }
    vsp = 0;
}
  
y = y + vsp;

//Animations
if (!place_meeting(x,y+1, WOLL))    {
    sprite_index = HarvJump;
    image_speed = 0;
    if (sign(vsp) > 0) image_index = 1; else image_index = 0;
}
Can someone help find what's happening in my code?
 
Top