Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_dialogue_box_battle_transformation_any_in_Create_0

(view raw script w/o annotations or w/e)
1
image_xscale = obj_dialogue_box_battle_transformation_any.image_xscale
2
image_yscale = obj_dialogue_box_battle_transformation_any.image_yscale
3
x = obj_dialogue_box_battle_transformation_any.x
4
y = obj_dialogue_box_battle_transformation_any.y
5
sprite_width_end = 1
6
sprite_height_end = 1
7
var sprite_width_multiplier = abs(1 - image_xscale)
8
var sprite_height_multiplier = abs(1 - image_yscale)
9
if (image_xscale > 1)
10
    width_increase_type = 1
11
else
12
    width_increase_type = 0
13
if (image_yscale > 1)
14
    height_increase_type = 1
15
else
16
    height_increase_type = 0
17
max_frames = 10
18
sprite_width_increase = sprite_width_multiplier / max_frames
19
sprite_height_increase = sprite_height_multiplier / max_frames
20
destination_x = 319
21
destination_y = 320
22
if (destination_x > x)
23
    x_increase_type = 1
24
else
25
    x_increase_type = 0
26
if (destination_y > y)
27
    y_increase_type = 1
28
else
29
    y_increase_type = 0
30
disjoint_x = destination_x - x
31
disjoint_y = destination_y - y
32
x_increase = disjoint_x / max_frames
33
y_increase = disjoint_y / max_frames
34
transform_direction = 1
35
no_loop = false