Patch Son et modification hit (knockback doit etre ajouté manuellement)
This commit is contained in:
parent
c89557c15a
commit
1a50760b59
10 changed files with 15 additions and 22 deletions
|
@ -1 +1 @@
|
|||
hit(self, other, 2);
|
||||
hit(self, other);
|
1
objects/oFire/Create_0.gml
Normal file
1
objects/oFire/Create_0.gml
Normal file
|
@ -0,0 +1 @@
|
|||
attack = 2;
|
|
@ -22,6 +22,7 @@
|
|||
"physicsShapePoints": [],
|
||||
"eventList": [
|
||||
{"isDnD":false,"eventNum":0,"eventType":4,"collisionObjectId":{"name":"oPlayer","path":"objects/oPlayer/oPlayer.yy",},"parent":{"name":"oFire","path":"objects/oFire/oFire.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
|
||||
{"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"parent":{"name":"oFire","path":"objects/oFire/oFire.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
|
||||
],
|
||||
"properties": [],
|
||||
"overriddenProperties": [],
|
||||
|
|
|
@ -1,20 +1,6 @@
|
|||
if (inv == 0) {
|
||||
audio_play_sound(snHit,1,false);
|
||||
hit(other, self, other.attack);
|
||||
hit(other, self);
|
||||
inv = 30;
|
||||
} else {
|
||||
knockBack(other, self);
|
||||
}
|
||||
|
||||
// pushback
|
||||
/*
|
||||
knockback = 10;
|
||||
if (other.x > x && !place_meeting(x-knockback-1, y, oWall)) {
|
||||
x -= knockback;
|
||||
} else if (other.x < x && !place_meeting(x+knockback+1, y, oWall)) {
|
||||
x += knockback;
|
||||
} else if (other.y > y && !place_meeting(x, y-knockback-1, oWall)) {
|
||||
y -= knockback;
|
||||
} else if (other.y < y && !place_meeting(x, y+knockback+1, oWall)) {
|
||||
y += knockback;
|
||||
}*/
|
||||
knockBack(other, self);
|
|
@ -26,6 +26,7 @@ switch (indexImageInfo) {
|
|||
}
|
||||
|
||||
if (inst != noone) {
|
||||
hit(self, inst, attack);
|
||||
hit(self, inst);
|
||||
knockBack(self, inst);
|
||||
inst.touche = 30;
|
||||
}
|
|
@ -1,3 +1,3 @@
|
|||
hit (self, other, 10);
|
||||
hit (self, other);
|
||||
audio_play_sound(snHit,1,false);
|
||||
room_goto(asset_get_index("r" + string(oGame.tableau[oGame.posX, oGame.posY])));
|
1
objects/oTrou/Create_0.gml
Normal file
1
objects/oTrou/Create_0.gml
Normal file
|
@ -0,0 +1 @@
|
|||
attack = 10;
|
|
@ -22,6 +22,7 @@
|
|||
"physicsShapePoints": [],
|
||||
"eventList": [
|
||||
{"isDnD":false,"eventNum":0,"eventType":4,"collisionObjectId":{"name":"oPlayer","path":"objects/oPlayer/oPlayer.yy",},"parent":{"name":"oTrou","path":"objects/oTrou/oTrou.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
|
||||
{"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"parent":{"name":"oTrou","path":"objects/oTrou/oTrou.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
|
||||
],
|
||||
"properties": [],
|
||||
"overriddenProperties": [],
|
||||
|
|
Reference in a new issue