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) {
|
||||
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;
|
||||
}
|
||||
}*/
|
|
@ -1,5 +1,5 @@
|
|||
seDeplace = 0;
|
||||
pdv = 100;
|
||||
pv = 100;
|
||||
inv = 0; //timer invinsiblité
|
||||
|
||||
indexImageInfo = 0;
|
||||
|
|
Reference in a new issue