touhou-pride-jam-2021/thpj3/objects/obj_enemy_bullet_parent/Step_0.gml

28 lines
909 B
Plaintext
Raw Normal View History

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();
}
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;
}
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);
obj_wriggle.score_current += SCORE_GRAZE_VALUE * ( obj_wriggle.score_multiply ) * (obj_wriggle.hyper_tier + 1);
}
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();
}
image_angle = direction;