4
0
Fork 0

Changement code pour fonction dans oPlayer (attaqué par monstre)

This commit is contained in:
rick 2020-12-06 00:01:02 +01:00
parent 297c89f6bd
commit 51342c4f06
2 changed files with 7 additions and 8 deletions

View file

@ -1,13 +1,12 @@
if (pdv <= 0) {
instance_destroy();
show_debug_message("game overe");
// GAME OVER
} else if (inv == 0) {
pdv--;
if (inv == 0) {
hit(other, self, other.attack);
inv = 120;
} else {
knockBack(other, self);
}
// pushback
/*
knockback = 10;
if (other.x > x && !place_meeting(x-knockback-1, y, oWall)) {
x -= knockback;
@ -17,4 +16,4 @@ if (other.x > x && !place_meeting(x-knockback-1, y, oWall)) {
y -= knockback;
} else if (other.y < y && !place_meeting(x, y+knockback+1, oWall)) {
y += knockback;
}
}*/

View file

@ -1,5 +1,5 @@
seDeplace = 0;
pdv = 100;
pv = 100;
inv = 0; //timer invinsiblité
indexImageInfo = 0;