A
Ali-TP
Guest
Thank you! Got it working I praise thee.
Here's the code now with the correct layer depth auto assigned:
Here's the code now with the correct layer depth auto assigned:
I just left a review and it doesn't seem to recognise my account name but it's still gone through.//------------------ Tiles
var lay_id = layer_get_id("Tiles_1");
if room = rTitle {
var my_pal_sprite = sTitlePalette;
}
if room = rForest1 {
my_pal_sprite = sForest1Palette;
}
var current_pal = global.eth?1:0;
var td = layer_get_depth("Tiles_1");
pal_swap_set(my_pal_sprite,current_pal,false);
pal_swap_set_tiles(my_pal_sprite,current_pal,td-1,td+1,false);
pal_swap_reset();
Last edited by a moderator: