Page 1 of 1
Moving layers and restart last level on death
Posted: Fri Feb 14, 2014 3:04 am
by Reign
Having a slight problem with my episode, as I'm using the option "Restart the last level on death". I have several levels using moving layers, and they work fine until the player dies. When the level restarts, the moving of the layers also stops. The auto start -option is selected, but it does not work after the first death in the level. I'm now trying to figure out how to make these layers automatically start moving at the beginning of a level without the player having to press a switch or kill something. Any ideas how to handle it?
Re: Moving layers and restart last level on death
Posted: Fri Feb 14, 2014 4:01 am
by Magician
I never use the level - start event. It never works as it should.
Find an NPC that gets activated in an area that is not the same screen as where you start the level, but in an area that you must pass through in order to get to whatever moving layers need to be activated before you reach them. On that NPC go to "Events" and then click "Activate" and then click "Level - Start" and that should fix it by ensuring that even if the level start event wasn't triggered, something else will trigger it.
Another way to do it that might be foolproof:
Move Mario to another spot temporarily,
Make a layer called levelstart,
Click the axe in the NPC window,
Click Events in the NPC window,
Click Death on the pop-up window and then click "Level - Start",
Place the axe on that layer where Mario should be,
Hide the layer,
Place Mario on that spot,
Show the layer.
If that doesn't work for some reason, I'd suggest making a new event instead of using Level-Start.
Re: Moving layers and restart last level on death
Posted: Fri Feb 14, 2014 10:20 pm
by FallingSnow
The Level-Start event was for having text show at the start of a level and only a single time if I recall. Its intention was misunderstood.
Re: Moving layers and restart last level on death
Posted: Sat Feb 15, 2014 3:59 am
by Reign
I'm actually not using the level start -event, but the "auto start" option in the lower right corner. However, it does seem to have the same problem. Those suggestions are good, unfortunately the levels only have one screen and no scrolling so they don't really work. Guess I'll have to deal with switches or something.

Re: Moving layers and restart last level on death
Posted: Sat Feb 15, 2014 4:02 am
by FanofSMBX
hide layer "default", put invisible axe with death event, re-show the layer, and tada! you might have to re-hide it again to place Mario.
Re: Moving layers and restart last level on death
Posted: Sat Feb 15, 2014 4:15 am
by Magician
Reign wrote:I'm actually not using the level start -event, but the "auto start" option in the lower right corner. However, it does seem to have the same problem. Those suggestions are good, unfortunately the levels only have one screen and no scrolling so they don't really work. Guess I'll have to deal with switches or something.

The axe solution I provided doesn't require more than one screen or any scrolling whatsoever.
Though FanofSMBX is right. You don't need to put the axe on a different layer than the default one, contrary to what I said previously.
Re: Moving layers and restart last level on death
Posted: Sat Feb 15, 2014 11:36 am
by Reign
Thank you both.
