1 | if (place_meeting(x, y, obj_pl)) |
2 | { |
3 | if (obj_pl.state == scr_normal_state && obj_pl.DEBUG_DANCE == false) |
4 | { |
5 | if ((global.right_key + global.left_key + global.up_key + global.down_key) == 0) |
6 | dance_timer--; |
7 | if (dance_timer <= 0) |
8 | { |
9 | dance_timer = dance_timer_max; |
10 | obj_pl.DEBUG_DANCE = true; |
11 | } |
12 | } |
13 | } |
14 | else |
15 | { |
16 | dance_timer = dance_timer_max; |
17 | } |