L
Loïc Mouton
Guest
Hi GMC !
I'm new in the Game maker Community and i've a problem with the collision of my player.
On the platform, he has collision but he can pass trough wall :/
Here it's normal ...
But here it's not normal at all.
I thinks the problem is from my code for vertical colission so there is it :
Thanks for your help !!!
I'm new in the Game maker Community and i've a problem with the collision of my player.
On the platform, he has collision but he can pass trough wall :/
Here it's normal ...
But here it's not normal at all.
I thinks the problem is from my code for vertical colission so there is it :
Code:
if (place_meeting(x, y + vspd, obj_Wall))
{
while (!place_meeting(x, y + sign(vspd), obj_Wall))
{
y = y + sign(vspd);
}
vspd = 0;
}
y = y + vspd;