Moving layers and restart last level on death

Need help with any SMBX game-related issues? Ask your questions here.

Moderator: Userbase Moderators

Reign
Chain Chomp
Chain Chomp
Posts: 327
Joined: Tue Jan 21, 2014 4:22 am

Moving layers and restart last level on death

Postby Reign » Fri Feb 14, 2014 3:04 am

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?

Magician
Volcano Lotus
Volcano Lotus
Posts: 567
Joined: Fri Dec 20, 2013 7:36 pm
Pronouns: he/him

Re: Moving layers and restart last level on death

Postby Magician » Fri Feb 14, 2014 4:01 am

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.

FallingSnow
Foo
Foo
Posts: 822
Joined: Sat Dec 21, 2013 4:32 am

Re: Moving layers and restart last level on death

Postby FallingSnow » Fri Feb 14, 2014 10:20 pm

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.

Reign
Chain Chomp
Chain Chomp
Posts: 327
Joined: Tue Jan 21, 2014 4:22 am

Re: Moving layers and restart last level on death

Postby Reign » Sat Feb 15, 2014 3:59 am

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. :)

FanofSMBX
Ludwig von Koopa
Ludwig von Koopa
Posts: 3878
Joined: Sun Dec 22, 2013 12:01 pm

Re: Moving layers and restart last level on death

Postby FanofSMBX » Sat Feb 15, 2014 4:02 am

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.

Magician
Volcano Lotus
Volcano Lotus
Posts: 567
Joined: Fri Dec 20, 2013 7:36 pm
Pronouns: he/him

Re: Moving layers and restart last level on death

Postby Magician » Sat Feb 15, 2014 4:15 am

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.

Reign
Chain Chomp
Chain Chomp
Posts: 327
Joined: Tue Jan 21, 2014 4:22 am

Re: Moving layers and restart last level on death

Postby Reign » Sat Feb 15, 2014 11:36 am

Thank you both. :)


Return to “Help and Support”

Who is online

Users browsing this forum: Semrush [Bot] and 2 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari