1 | siny += 1; |
2 | y = yo + (sin(siny / 30) * 4); |
3 | yo += vspeed; |
4 | if (instance_exists(creator)) |
5 | { |
6 | if (creator.emotion == 0) |
7 | sprite_index = spr_shyren_hide; |
8 | if (creator.emotion == 1) |
9 | sprite_index = spr_shyren_swim; |
10 | if (creator.emotion == 2) |
11 | sprite_index = spr_shyren_sing; |
12 | } |
13 | else |
14 | { |
15 | instance_destroy(); |
16 | } |