Platform Builder Forums

Main => Suggestions => Topic started by: Antikore on October 10, 2018, 05:27:46 PM

Title: Layer Manager
Post by: Antikore on October 10, 2018, 05:27:46 PM
A layer manager is a very cool option that SMBX has. We can have a layer manager that is sorted from the first to the last, the first will have priority in the game and in the editor to be seen. The first will appear in front of the rest, of course.

You can see in the editor all of them, or just see one of them. That will be epic!
In the layer manager, you can edit the layer options, like visibility, alpha (the transparency), collision etc.

But the best feature this can have is some new commands and conditionals that will be awesome for this.

Commands
Layer (ID) speed = very slow, slow, medium, fast, very fast.
Layer (ID) = up, down, left, right, up-left, up-right, down-left, down-right
Layer (ID) alpha = (Number from 1 to 255)
Layer (ID) visible = true or false
Layer (ID) collision = true or false

Conditionals
if [any layer command] = [any value]

if layer (ID) killed = [true or false]
(Will check for a layer, if its contents in the level have been destroyed, or disappeared. For example, I have a layer with only 100 coins in the layer in this level, if I got all those coins, and in the layer is nothing left, when this conditional is checked, will be true. If still is something left, will be false)

Also, the layer when moving will move the player when he/she is over it. If the layer is moving up, and it collides, it can be used as a moving platform.
Title: Re: Layer Manager
Post by: CGM on October 10, 2018, 06:14:51 PM
I don't think layers are really necessary.
Title: Re: Layer Manager
Post by: Antikore on October 10, 2018, 06:42:41 PM
You think on all the possibilities we can have with this!
Title: Re: Layer Manager
Post by: CGM on October 10, 2018, 07:58:17 PM
I just don't see the possibilities. The post didn't make a whole lot of sense.
Title: Re: Layer Manager
Post by: Antikore on October 11, 2018, 07:31:46 AM
In the following video you will see "Donut Plains 2". The yellow floor tiles, are moving and, with layers in Platform Builder, we can do that. The yellow tiles will be tiles in a different layer, and the layer will be moved by a timeline up and down.

Title: Re: Layer Manager
Post by: CGM on October 11, 2018, 01:57:38 PM
I see.