S
Superarash
Guest
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:
After I take out the section of code after "//Animations":
Can someone help find what's happening in my code?
What's happening:
After I take out the section of code after "//Animations":
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;
}