1 | function sprite_mirror(argument0, argument1) //gml_Script_sprite_mirror |
2 | { |
3 | if argument0 |
4 | { |
5 | var _bb = bbox_left |
6 | image_xscale *= -1 |
7 | x -= (bbox_left - _bb) |
8 | } |
9 | if argument1 |
10 | { |
11 | _bb = bbox_top |
12 | image_yscale *= -1 |
13 | y -= (bbox_top - _bb) |
14 | } |
15 | } |