1 |
state = 0 |
2 |
default_x = x |
3 |
default_xscale = 1 |
4 |
default_yscale = 1 |
5 |
id_el_bailador = obj_el_bailador_neutral |
6 |
global.id_store = id |
7 |
with (id_el_bailador) |
8 |
{ |
9 |
image_alpha = 0 |
10 |
time_elapsed = 0 |
11 |
sign_modifier = 1 |
12 |
id_el_bailador_dance = global.id_store |
13 |
} |
14 |
direction_x = choose(-1, 1) |
15 |
if (direction_x == -1) |
16 |
{ |
17 |
var random_pose = irandom_range(0, 1) |
18 |
switch random_pose |
19 |
{ |
20 |
case 0: |
21 |
sprite_index = spr_el_bailador_pose_left_1 |
22 |
image_speed_dance = (1/3) |
23 |
break |
24 |
case 1: |
25 |
sprite_index = spr_el_bailador_pose_left_2 |
26 |
image_speed_dance = (1/3) |
27 |
break |
28 |
default: |
29 |
sprite_index = spr_el_bailador_pose_left_1 |
30 |
image_speed_dance = (1/3) |
31 |
break |
32 |
} |
33 |
|
34 |
} |
35 |
if (direction_x == 1) |
36 |
{ |
37 |
random_pose = irandom_range(0, 2) |
38 |
switch random_pose |
39 |
{ |
40 |
case 0: |
41 |
sprite_index = spr_el_bailador_pose_right_1 |
42 |
image_speed_dance = (1/3) |
43 |
break |
44 |
case 1: |
45 |
sprite_index = spr_el_bailador_pose_right_2 |
46 |
image_speed_dance = (1/3) |
47 |
break |
48 |
case 2: |
49 |
sprite_index = spr_el_bailador_pose_right_3 |
50 |
image_speed_dance = (1/3) |
51 |
break |
52 |
default: |
53 |
sprite_index = spr_el_bailador_pose_right_1 |
54 |
image_speed_dance = (1/3) |
55 |
break |
56 |
} |
57 |
|
58 |
} |
59 |
image_speed = image_speed_dance |
60 |
image_index = 0 |
61 |
image_xscale = 1 |
62 |
image_yscale = 1 |
63 |
sign_modifier_move = direction_x |
64 |
time_elapsed_move = 0 |
65 |
time_max_move = 30 |
66 |
time_increase_move = 1 |
67 |
max_rise_move = 150 |
68 |
time_max_dance = 20 |
69 |
sign_modifier = 1 |
70 |
time_elapsed = 0 |
71 |
time_max = time_max_dance |
72 |
time_increase = 1 |
73 |
max_rise = 0.025 |
74 |
max_rise_ext = 0.02 |
75 |
time_max_default = time_max |