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

15 lines
486 B
Plaintext
Raw Permalink Normal View History

2021-06-06 01:19:04 -07:00
if ( keyboard_check( vk_shift ) ) {
x_target = obj_wriggle.x + ( obj_wriggle.face_dir * OPTION_FORWARD );
y_target = obj_wriggle.y + ( side_modifier * OPTION_SIDE_FOCUS );
} else {
2021-06-06 18:31:55 -07:00
x_target = obj_wriggle.x + ( obj_wriggle.face_dir * OPTION_FORWARD * .75 );
2021-06-06 01:19:04 -07:00
y_target = obj_wriggle.y + ( side_modifier * OPTION_SIDE_UNFOC );
}
if ( point_distance(x, y, x_target, y_target) >= 6 ) {
move_towards_point( x_target, y_target, 5 );
} else {
x = x_target;
y = y_target;
}