2021-06-14 03:06:50 -07:00
|
|
|
if ( obj_dialogue.dialogue_mode || y < BOUNDARY_TOP - 160 || y > BOUNDARY_BOTTOM + 160 || x < BOUNDARY_LEFT - 160 || x > BOUNDARY_RIGHT + 160 ) {
|
2021-06-07 01:52:09 -07:00
|
|
|
instance_destroy();
|
2021-06-14 03:06:50 -07:00
|
|
|
}
|
|
|
|
if (hp <= 0 ) {
|
|
|
|
instance_destroy();
|
|
|
|
//TODO: point system for kills
|
2021-06-07 22:27:44 -07:00
|
|
|
}
|
2021-06-11 04:39:22 -07:00
|
|
|
if ( obj_wriggle.emergency && !temp_speed ) {
|
2021-06-07 22:27:44 -07:00
|
|
|
temp_speed = speed;
|
|
|
|
speed = 0;
|
2021-06-11 04:39:22 -07:00
|
|
|
} else if ( !obj_wriggle.emergency && temp_speed ) {
|
2021-06-07 22:27:44 -07:00
|
|
|
speed = temp_speed;
|
|
|
|
temp_speed = 0;
|
2021-06-07 01:52:09 -07:00
|
|
|
}
|