1 |
var battle_box = obj_dialogue_box_battle_transformation_any |
2 |
var movement_width = battle_box.sprite_width * 0.5 - 20 |
3 |
var movement_height = battle_box.sprite_height * 0.5 - 20 |
4 |
image_angle = direction |
5 |
if (image_alpha < 0.99) |
6 |
image_alpha = lerp(image_alpha, 1, 0.25) |
7 |
x = battle_box.x |
8 |
if (direction == 90 || direction == 270) |
9 |
x += (sin(degtorad(movement_sin_current)) * movement_width) |
10 |
y = battle_box.y |
11 |
if (direction == 0 || direction == 180) |
12 |
y += (sin(degtorad(movement_sin_current)) * movement_height) |
13 |
movement_sin_current += movement_sin_inc |
14 |
if (movement_sin_current >= 360) |
15 |
movement_sin_current -= 360 |