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
2020-12-05 18:56:12 +01:00

19 lines
No EOL
303 B
Text

if (pdv <= 0) {
instance_destroy();
show_debug_message("game overe");
// GAME OVER
} else if (inv == 0) {
pdv--;
inv = 120;
}
// pushback
if (other.x > x) {
x -= 10;
} else if (other.x < x) {
x += 10;
} else if (other.y > y) {
y -= 10;
} else if (other.y < y) {
y += 10;
}