4
0
Fork 0

Attaque plus rapide du joueur

This commit is contained in:
rick 2020-12-06 19:49:25 +01:00
parent c6da53f871
commit a256433cb3

View file

@ -12,13 +12,13 @@ deplaceVertical = keyDown - keyUp;
if (isAttack) {
sprite_index = sPlayerAttackSlash;
image_speed = 1;
image_speed = 1.5;
if (compteurFrames == 0) {
image_index = indexImageInfo * 4;
} else if (compteurFrames > 4) {
isAttack = false;
}
compteurFrames += 0.25;
compteurFrames += 0.5;
} else {
if ((deplaceHorizontal > 0 && !place_meeting(x+2, y, oWall))