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

16 lines
270 B
Text
Raw Normal View History

if (pdv <= 0) {
instance_destroy();
show_debug_message("game overe");
// GAME OVER
} else {
pdv--;
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;
}
}