1 | function scr_turn() //gml_Script_scr_turn |
2 | { |
3 | if (obj_pl.direction == 0) |
4 | direction = 180 |
5 | if (obj_pl.direction == 90) |
6 | direction = 270 |
7 | if (obj_pl.direction == 180) |
8 | direction = 0 |
9 | if (obj_pl.direction == 270) |
10 | direction = 90 |
11 | } |