2021-06-07 22:27:44 -07:00
|
|
|
/// @function: scr_pattern_fire( _pattern, _speed, _bullet );
|
|
|
|
/// @param _pattern {real}
|
|
|
|
/// @param _speed {real}
|
|
|
|
/// @param _bullet {object}
|
|
|
|
|
|
|
|
|
|
|
|
function scr_pattern_fire( _pattern, _speed, _bullet ) {
|
|
|
|
switch ( _pattern ) {
|
|
|
|
case PATTERN_STREAM:
|
2021-06-09 01:48:21 -07:00
|
|
|
exy = instance_create_layer( x, y, "enemy", _bullet );
|
2021-06-07 22:27:44 -07:00
|
|
|
with (exy) {
|
|
|
|
speed = _speed + obj_wriggle.hyper_tier;
|
|
|
|
direction = point_direction( x, y, obj_wriggle.x, obj_wriggle.y );
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|