diff --git a/objects/oPlayer/Step_0.gml b/objects/oPlayer/Step_0.gml index 47012d5..e78145f 100644 --- a/objects/oPlayer/Step_0.gml +++ b/objects/oPlayer/Step_0.gml @@ -21,13 +21,13 @@ if (isAttack) { compteurFrames += 0.25; } else { - if ((deplaceHorizontal > 0 && !place_meeting(x+1, y, oWall)) - || (deplaceHorizontal < 0 && !place_meeting(x-1, y, oWall))) { + if ((deplaceHorizontal > 0 && !place_meeting(x+2, y, oWall)) + || (deplaceHorizontal < 0 && !place_meeting(x-2, y, oWall))) { x += deplaceHorizontal*spd; } - if ((deplaceVertical > 0 && !place_meeting(x, y+1, oWall)) - || (deplaceVertical < 0 && !place_meeting(x, y-1, oWall))) { + if ((deplaceVertical > 0 && !place_meeting(x, y+2, oWall)) + || (deplaceVertical < 0 && !place_meeting(x, y-2, oWall))) { y += deplaceVertical*spd; }