Author Topic: Layer Manager  (Read 1782 times)

Antikore

  • Developing Mortal Theater at day, developing depression at night.
  • Level 22: Trex
  • *
  • Posts: 2020
  • Enjoying Platform Builder from the very start
    • View Profile
    • PBuilder Resources
Layer Manager
« 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.
Sorry because my English is not very good because I'm Spanish ;) :P

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Layer Manager
« Reply #1 on: October 10, 2018, 06:14:51 PM »
I don't think layers are really necessary.

Antikore

  • Developing Mortal Theater at day, developing depression at night.
  • Level 22: Trex
  • *
  • Posts: 2020
  • Enjoying Platform Builder from the very start
    • View Profile
    • PBuilder Resources
Re: Layer Manager
« Reply #2 on: October 10, 2018, 06:42:41 PM »
You think on all the possibilities we can have with this!
Sorry because my English is not very good because I'm Spanish ;) :P

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Layer Manager
« Reply #3 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.

Antikore

  • Developing Mortal Theater at day, developing depression at night.
  • Level 22: Trex
  • *
  • Posts: 2020
  • Enjoying Platform Builder from the very start
    • View Profile
    • PBuilder Resources
Re: Layer Manager
« Reply #4 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.

Sorry because my English is not very good because I'm Spanish ;) :P

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Layer Manager
« Reply #5 on: October 11, 2018, 01:57:38 PM »
I see.