K
Karlabos
Guest
How does one add a sprite to a background via code?
I tried the following:
globalvar town_background;
town_background = layer_background_get_id("Background");
//I assume Background and Instances are default layers belonging to every room? At least they appear in the room editor
layer_background_sprite(town_background,back_Neboohoo); //the latter is a sprite available in the ide
However when I test, the room is just the color of the Background layer, with no sprite at all...
I tried the following:
globalvar town_background;
town_background = layer_background_get_id("Background");
//I assume Background and Instances are default layers belonging to every room? At least they appear in the room editor
layer_background_sprite(town_background,back_Neboohoo); //the latter is a sprite available in the ide
However when I test, the room is just the color of the Background layer, with no sprite at all...