Make layer invisible in ATL? [SOLVED]
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Make layer invisible in ATL? [SOLVED]
Let's say I have two layer, which named "background" and "foreground" respectively. Is it possible to make the foreground layer "invisible" in runtime?
Last edited by herksaw on Sun Jul 20, 2014 4:45 am, edited 1 time in total.
Re: Make layer invisible in ATL?
Set the alpha to 0, with love.graphics.setColor
Re: Make layer invisible in ATL?
Each tile-layer has an opacity, just change it's value to 0 and the ATL [yourMap]:draw() function does the rest!
Could also just set the tile-layer not to be visible (you have 1 less render call that way).
Example:
Could also just set the tile-layer not to be visible (you have 1 less render call that way).
Example:
Code: Select all
if (key == "f1") then map("Collision Layer").visible = not map("Collision Layer").visible; end
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 2 guests