16 lines
No EOL
270 B
Text
16 lines
No EOL
270 B
Text
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;
|
|
}
|
|
} |