Changement code pour fonction dans oPlayer (attaqué par monstre)
This commit is contained in:
parent
297c89f6bd
commit
51342c4f06
2 changed files with 7 additions and 8 deletions
|
@ -1,13 +1,12 @@
|
||||||
if (pdv <= 0) {
|
if (inv == 0) {
|
||||||
instance_destroy();
|
hit(other, self, other.attack);
|
||||||
show_debug_message("game overe");
|
|
||||||
// GAME OVER
|
|
||||||
} else if (inv == 0) {
|
|
||||||
pdv--;
|
|
||||||
inv = 120;
|
inv = 120;
|
||||||
|
} else {
|
||||||
|
knockBack(other, self);
|
||||||
}
|
}
|
||||||
|
|
||||||
// pushback
|
// pushback
|
||||||
|
/*
|
||||||
knockback = 10;
|
knockback = 10;
|
||||||
if (other.x > x && !place_meeting(x-knockback-1, y, oWall)) {
|
if (other.x > x && !place_meeting(x-knockback-1, y, oWall)) {
|
||||||
x -= knockback;
|
x -= knockback;
|
||||||
|
@ -17,4 +16,4 @@ if (other.x > x && !place_meeting(x-knockback-1, y, oWall)) {
|
||||||
y -= knockback;
|
y -= knockback;
|
||||||
} else if (other.y < y && !place_meeting(x, y+knockback+1, oWall)) {
|
} else if (other.y < y && !place_meeting(x, y+knockback+1, oWall)) {
|
||||||
y += knockback;
|
y += knockback;
|
||||||
}
|
}*/
|
|
@ -1,5 +1,5 @@
|
||||||
seDeplace = 0;
|
seDeplace = 0;
|
||||||
pdv = 100;
|
pv = 100;
|
||||||
inv = 0; //timer invinsiblité
|
inv = 0; //timer invinsiblité
|
||||||
|
|
||||||
indexImageInfo = 0;
|
indexImageInfo = 0;
|
||||||
|
|
Reference in a new issue