Editor Tips

Really simple so far. I plan to expand this page into nice advanced usage docs. Stay tuned.

You can't trust the editor

What you see in the editor might not match what happens in the real game. You should always test your level out thoroughly to make sure it is doing what you expect.

Smaghetti's editor tries its best to mimick the real game. But there are just way too many combinations of entities. Most of the time, things work out just fine. But sometimes if you put two certain entities together in a new way, they may behave strangely in game, maybe even cause a crash.

Mario's position and the camera

Where Mario starts in a room has an influence on the camera. If you start him down low, then the camera will bias up high. If you start him about 3 or 4 files up from the bottom, the camera will be more balanced.

This is temporary, eventually Smaghetti will give you controls to configure the camera. But that probably won't get added for a good while.

The actors and stage layers

At the top of the editor, towards the right are two padlocks labeled "actors" and "stage". Actors are things like enemies, items, gizmos, etc. The stage is things like terrain, pipes, etc.

Sometimes you need to have two things overlap, like putting a piranha plant inside a pipe. Once they are both laid down, they become hard to work with. That is where the locks come in. If you click the stage lock, the pipe will get locked down and you can work on the piranha, and vice-versa with the actors lock.

Keyboard shortcuts

In the editor press '?' to see all the shortcuts available.

Hold shift when dragging to copy

When dragging something in the editor, if you hold shift it will make a copy of what you are dragging. This is especially useful when you need many copies of something that has to be configured. Configure the first one, then make copies.

Press 'p' twice to get playing again quicker

'p' toggles between playing and editing. If you die and want to try again, press p twice. This will reset the emulator and it's much faster than waiting for the game to let you try the level again.

You need a pretty fast machine for this tip unfortunately.

Vine and Wood Support

These two behave a little different from other entities. They automatically grow downward until they hit something. That's just how Nintendo made these entities work.

Scroll Stop

In the meta section of the item chooser is "Scroll Stop - Horizontal". This entity prevents the screen from scrolling past it. You can click on its arrow to change the direction of scrolling it stops.

With this entity, you can chop one room into several smaller rooms. The scroll stop will prevent the player from seeing other parts of the level.

Try Chrome if the emulator is too slow

I hate having to suggest this. But it is true that Chrome runs the emulator much faster than Firefox.

Ghost Player

The Ghost Player entity is found in the meta section of the entity chooser. It lets you start Mario at a temporary location in your room, for testing purposes.

  • There can only be one Ghost Player per room. If you draw a new one, the old one gets erased. Use this to quickly set up a new ghost wherever you are working in your room.
  • When testing a room, if it has a ghost, that is where Mario will start the level, otherwise he starts in his real position.
  • Whenever you save your level, all ghosts are removed.

E-Coin Photos

You can use an image file for your E-Coin. The image will get scaled to 24x24, so smaller images work better. The image's colors will also be converted to the E-Coin palette.

E-Coin template image

If you want to design a coin in the same style as Nintendo's, you can use this template image as your starting point. The e-coin palette is in the upper corner for reference. No need to delete the palette, when you use the image it will ignore all pixels outside the coin area.

Offensive images warning

if you publish your level with an offensive coin image, you may find your level unpublished. Repeat offenders will be banned from publishing levels. Crude, dumb, immature, etc images are fine.

Level size meter

The meter at the bottom of the editor shows your level's current size in bytes. If your level is too big, it may cause problems when playing it:

  • Under 2024 bytes: You are fine, no problems
  • 2025 to 2070 bytes: Your level will probably still work but might experience issues. If you can't get it down under 2024, you should test it thoroughly, especially warping between rooms.
  • Greater than 2070 bytes: If it is above 2070 bytes, you will almost certainly hit issues such as the level not loading at all, or crashing when warping to another room.

Pipe warp exits

When making a pipe warp, you need to set the destination on the correct part of the exit pipe in order for the warp animation to look correct in game.

Here are the correct exit locations for all pipe orientations:

Correct pipe exit locations

Making this easier and less error prone is on the TODO list.