Ajout recul sur monstre lors attaque joueur
This commit is contained in:
parent
441845b52d
commit
f8f5f7952a
6 changed files with 83 additions and 55 deletions
scripts/Script1
|
@ -7,7 +7,7 @@
|
|||
@param {objRepousse} objet qui sera repoussé
|
||||
*/
|
||||
function knockBack(obj, objRepousse) {
|
||||
knockback = 10;
|
||||
knockback = 20;
|
||||
oY = objRepousse.y;
|
||||
oX = objRepousse.x;
|
||||
if (obj.x > oX && !place_meeting(oX-knockback-1, oY, oWall)) {
|
||||
|
|
Reference in a new issue