2021-06-09 01:48:21 -07:00
|
|
|
if ( obj_wriggle.bombing || obj_wriggle.respawn || obj_dialogue.dialogue_mode ) {
|
|
|
|
if ( obj_wriggle.hyper_time && !obj_dialogue.dialogue_mode ) {
|
2021-06-07 22:27:44 -07:00
|
|
|
//TODO: create a point item if during a hyper
|
|
|
|
}
|
|
|
|
instance_destroy();
|
|
|
|
}
|
|
|
|
|
2021-06-14 03:06:50 -07:00
|
|
|
if ( obj_wriggle.emergency && !temp_speed ) {
|
2021-06-07 22:27:44 -07:00
|
|
|
temp_speed = speed;
|
|
|
|
speed = 0;
|
|
|
|
}
|
|
|
|
if ( !obj_wriggle.emergency && temp_speed ) {
|
|
|
|
speed = temp_speed;
|
|
|
|
temp_speed = 0;
|
|
|
|
}
|
|
|
|
|
2021-06-14 03:06:50 -07:00
|
|
|
if ( point_distance( x, y, obj_wriggle.x, obj_wriggle.y ) < 64 ) {
|
|
|
|
obj_wriggle.hyper_current += .1;
|
|
|
|
audio_play_sound(snd_graze, 0, false);
|
|
|
|
effect_create_below(ef_spark, obj_wriggle.x, obj_wriggle.y, 0, c_white);
|
2021-06-15 00:06:56 -07:00
|
|
|
obj_wriggle.score_current += SCORE_GRAZE_VALUE * ( obj_wriggle.score_multiply ) * (obj_wriggle.hyper_tier + 1);
|
2021-06-14 03:06:50 -07:00
|
|
|
}
|
2021-06-07 22:27:44 -07:00
|
|
|
|
|
|
|
if ( x < BOUNDARY_LEFT - 128 || x > BOUNDARY_RIGHT + 128 || y < BOUNDARY_TOP - 128 || y > BOUNDARY_BOTTOM + 128 ) {
|
|
|
|
instance_destroy();
|
2021-06-14 03:06:50 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
image_angle = direction;
|