Sergio
Member
Hi there:
I'm trying to flip the brackground of my game, using this code:
Aparently, this should works, since it's the same code that appears in the manual, and there is not much to do with it, but, when I run it, I start to receive in the console the error:
Error attempting to draw sprite spr_background
That happens with all negative values of layer_background_xscale. If I try with 0.5, everything goes ok.
Thanks in advance!
I'm trying to flip the brackground of my game, using this code:
Code:
var lay_id = layer_get_id("bg_wall");
var back_id = layer_background_get_id(lay_id);
layer_background_xscale(back_id, -1);
Error attempting to draw sprite spr_background
That happens with all negative values of layer_background_xscale. If I try with 0.5, everything goes ok.
Thanks in advance!