Mapping

Overview

Editor

A large majority of your time creating a 2D ORPG will be spent designing maps in order to create an expansive game world. The following steps will get you started on creating your first map.

Creating or Editing Maps

  • To begin mapping. Click on the BrushScreenshot_1 in the menubar above your map.
  • Select Tiles in the Map Layers pane.
  • Use your mouse to select a tile or group of tiles to place in your empty map.
  • Finally click and drag your mouse on the empty map to place your selected tiles.
  • Congratulations, you’re mapping! Don’t forget to save your changes by hitting the save icon in the top left of your screen.

Layers

While creating your maps you may realize that you want to place objects like houses, trees, and shrubs above the ground. This is where layers come into play. Under the Tiles tab in your Map Layers panel you will see a group of five icons.

Map Layers

Each of these icons represent a tile layer. When you left click an icon you will switch to that layer. The character’s face on the selected layer will have a little color to it.

Tiles on the first layer will appear below tiles on all other layers. Tiles on the second layer will appear below the tiles on the third, fourth, and fifth layers.

Before going further, let’s give a name to these layers. We refer to them as:

  • Ground
  • Mask
  • Mask 2
  • Fringe
  • Fringe 2

Utilizing multiple tile layers in your maps is how you can place trees, and other objects on top of other tiles.

Notice how the last two layer icons are drawn over the character’s face? Those are the two Fringe layers, and they exist above players and npcs in game.

In the demo above I placed entire trees on the Mask layer. The tiles on the Ground layer and the trees on the Mask layer are all drawn below my character in the game giving an unwanted effect of my character walking over the entire tree.

The solution isn’t as simple as moving the whole tree to the Fringe layer, we don’t want the tree trunk to be above my character , we need to find a compromise.

The solution in this case is to place the bottom half of the tree on the Mask layer, and the top half of the tree on the Fringe layer.

We finally end up with the effect that we’re looking for all thanks to layers!

Working Layers

Tilesets and Tile Types

Under the Layer properties. Are the tilesets and tile types. The tilesets can be found in your clients subfolder, resources\tilesets.

Tileset and Types

  • The list of tile types are described below.
    • Normal: Allows you to set normal tiles on the map. You can select multiple tiles by clicking and dragging the selection across the tileset.
    • Autotile (VX Format): Allows you to select a 2x3 tile autotile.
    • Fake (VX Format): Allows you to fake an autotile by using 1 tile.
    • Animated {VX Format): Allows you to select a 6x3 animated tile.
    • Cliff (VX Format): Allows you to select a 2x2 tile.
    • Waterfall (VX Format): Allows you to select a 2x3 animated waterfall tile.
    • Autotile (XP Format): Allows you to select a 3x4 tile autotile.
    • Animated (XP Format): Allows you to select a 9x4 animated tile.

Attributes

attribute

You probably noticed a big flaw in our game right now. You can walk through the tree!

No worries though, this section will help fix that! Attributes are like a sixth layer of the map. Attributes allow you to place tiles with special properties such as being blocks that players cannot pass.

Go back to your editor and open the Attributes tab in the Map Layers panel. Select the Block attribute and place it over the trunk of your tree.

Using the Block attribute you will find that you finally have a tree that renders correctly and, despite your best efforts, you won’t be able to phase through.

No More No Clip!

You won’t use any attribute more than the Block attribute. That being said here is a quick rundown of the rest of the attributes and what they do.

AttributeDescription
BlockMarks a tile on the map as being unpassable, neither npcs nor players can traverse through blocked tiles.
NPC AvoidActs as a block tile for npcs only. This is often used so monsters won’t enter friendly areas or block narrow pathways.
WarpWhen a player steps on a warp tile they will be teleported to a location in the game of your choosing.
Item SpawnAn item of your choosing and design will periodically spawn on this time.
Map SoundA sound effect will be playing on tiles where this attribute are placeed. The sound will grow louder and softer at the player approaches and moves away from this attribute.
ResourceA harvestable resource will spawn on this tile. This is commonly used for woodcutting, mining, fishing, and more. We will discuss this later in the resource editor documentation.
AnimationAn animation from the animation editor will play on this tile. Animations when properly setup can bring your game world to life. Ex:
Grappling StoneWhen combined with grappling hook projectiles you can allow your character to traverse terrain that he wouldn’t be able to otherwise. This will be discussed in-depth in the projectile editor documentation and examples.
SlideThis tile forces your player to slide in a direction of your choosing. You can use it for puzzles, traps, and more!
CritterThis allows you to add quality of life NPC’s such as butterflies, crows, etc. These NPC’s do not attack and can not be attacked.

Lights

light

Clicking the Lights tab will show this window above. Double click on the map to set your light and open the options window.

  • Select Color: Allows you to set a color for your light.
  • Offset X: Allows you to set a horizontal offset in pixels, a negative number offsets to the left, a positive number offsets to the right.
  • Offset Y: Allows you to set a vertical offset in pixels, a negative number offsets to the top, a positive number offsets to the bottom.
  • Intensity: Allows you to set your lights intensity, this strengthens the color at 255 while 0 would be alpha.
  • Size: Allows you to set your lights size.
  • Expand Amt: Allows you to expand your radius.

When you’re finished setting your options, click ‘Save’ to save the light (Make sure to also save your map!). Clicking ‘Revert’ will reset the lights options.

Events

event

Clicking the Events tab will show this window above. Double click on the map to set your event and the event editor will show. Click here for more information on how to set up events!

NPC’s

npc

Clicking the Npcs tab will show this window above. We’ll go over what all of the settings are for.

  • Declared: Clicking on this will allow you to set a spawn on your map that declares where your Npc will spawn. Double click on the map after you’ve added your Npc.
  • Random: Clicking on this will randomize the Npc spawn point.
  • Direction: Allows you to set a facing direction for the Npc when it spawns.
  • Add/Remove Map Npcs: Allows you to select an Npc to add/remove. Click on the Npc in the list and then click on ‘Remove’ to remove the Npc. Click ‘Add’ to add the Npc to the list for the map.

Map Properties

Properties

On the bottom right of the map editor, you’ll see a window named ‘Map Properties’. We will go over what all the setting are.

Audio

  • Music: Allows you to set music to your map. Music is located in your client subfolder resources\music and they are in the .ogg format.
  • Sound: Allows you to set sound to your map. Sounds are located in your clients subfolder resources\sounds and they are in the .wav format.

Fog

  • Fog: Allows you to set fog to your map. Fogs would be located in your clients subfolder resources\fogs.
  • Fog Alpha: Allows you to set your fogs alpha, 255 being solid while 0 is invisible.
  • Fog X Speed/Fog Y Speed: Allows you to set a fogs horizontal/vertical movement speed (0 being no movement, 5 being the strongest)

General

  • Name: Allows you to set a name for your map.
  • Zone Type: Allows you to set a zone type, those options are (Normal, Safe, Arena). Normal and Arena are PvP enabled.

Lighting

  • Brightness: Allows you to set the brightness of indoor maps. 100 being the brightest while 0 is darkness.
  • Is Indoors: Allows you to set your map as an interior map. Interiors are not affected by day/night settings, nor fog or weather settings.
  • Player Light Color: Allows you to give players a color light source for when it is dark.
  • Player Light Expand: Allows you to set a fade around the players light, 0.00 to 1.00.
  • Player Light Intensity: Allows you to set the players light intensity. 255 being the strongest while 0 being invisible.
  • Player Light Size: Allows you to set the players light size.

Misc

  • Overlay Graphic: Allows you to set a graphic that will appear above the map, images would be found inside your clients subfolder, resources\images.
  • Panorama: Allows you to set a graphic that will appear below the map. Also in the same subfolder.

Overlay

  • AHue: Allows you to set an alpha color hue. 0 being invisible, 255 being solid.
  • BHue: Allows you to set a blue hue. 255 being the strongest color.
  • GHue: Allows you to set a green hue. 255 being the strongest color.
  • RHue: Allows you to set a red hue. 255 being the strongest color.

Player

  • Hide Equipment: Allows you to stop rendering paperdoll equipment on this map.

Weather

  • Weather: Allows you to set weather particles on this map. It will show you a list of animations from the animation editor.
  • Weather Imtemsity: Allows you to set the weathers intensity. 255 being the strongest while 0 is invisible.
  • Weather X Speed: Allows you to set the weathers horizontal movement. 5 being the strongest, 0 being no movement.
  • Weather Y Speed: Allows you to set the weathers vertical movement. 5 being the strongest, 0 being no movement.

Toolbar

Toolbox

  • Clicking New will create a new map.
  • Clicking Save will allow you to save the current map you’re on. Shortcut = (Ctrl+S)
  • Clicking Cut will allow you to cut tiles. Shortcut = (Ctrl+X)
  • Clicking Copy will allow you to copy tiles. Shortcut = (Ctrl+C)
  • Clicking Paste will allow you to paste tiles. Shortcut = (Ctrl+V)
  • Clicking Undo will allow you to undo an action. Shortcut = (Ctrl+Z)
  • Clicking Redo will allow you to redo an action. Shortcut = (Ctrl+Y)
  • Clicking Brush will allow you to lay single tiles. Shortcut = (B)
  • Clicking Selection will allow you to select tiles in a map by clicking and dragging from top/left to bottom/right. Shortcut = (M)
  • Clicking Rectangle will allow you to drop multiple tiles in a rectangular fill. Shortcut = (R)
  • Clicking Flip H will flip your selection horizontally. Shortcut = (PageUp)
  • Clicking Flip V will flip your selection vertically. Shortcut = (PageDown)
  • Clicking Fill will allow you to fill the entire map with a tile selected on any layer selected. Shortcut = (F)
  • Clicking Erase will allow you to erase any layer selected. Shortcut (E)
  • Clicking Eyes will allow you to click on a tile to duplicate it. Shortcut = (I)
  • Clicking Sim Day Night will allow you to simulate day/night within the editor.
  • Clicking Screenshot will allow you to screenshot your map.
  • Clicking Start Client will allow you to run the client after the path setting is set in (File, Options)

Please go to World Design for information on how to connect / unconnect maps!