| 1 | if (myinteract == 1) |
| 2 | { |
| 3 | if (snd_isplaying(snd_movemenu) == 0) |
| 4 | snd_play(snd_movemenu); |
| 5 | if (sprite_index == spr_groundtorch_off) |
| 6 | { |
| 7 | sprite_index = spr_groundtorch_on; |
| 8 | glow = 1; |
| 9 | } |
| 10 | else |
| 11 | { |
| 12 | sprite_index = spr_groundtorch_off; |
| 13 | glow = 0; |
| 14 | } |
| 15 | myinteract = 0; |
| 16 | } |
| 17 | if (instance_exists(obj_torchpuzzle)) |
| 18 | { |
| 19 | if (glow == 1) |
| 20 | obj_torchpuzzle.h += 1; |
| 21 | } |