4
0
Fork 0
This repository has been archived on 2023-09-15. You can view files and clone it, but cannot push or open issues or pull requests.
surprise_dungeon/objects/oPlayer/Collision_oMonster.gml

20 lines
521 B
Text
Raw Normal View History

if (inv == 0) {
2020-12-06 20:12:21 +01:00
audio_play_sound(snHit,1,false);
hit(other, self, other.attack);
2020-12-06 17:05:26 +01:00
inv = 30;
} else {
knockBack(other, self);
2020-12-05 18:56:12 +01:00
}
// 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;
}*/