Nyra Studios
Manual under construction. Some parts are incomplete or may change.

Configuration

Nyra 0.5.4.28

On the Configuration page you decide how the characters move in your game: whether they walk step by step or run and jump, how fast they are, and how much room they take up when they bump into a wall. It applies to the active game.

In the menu on the left open Configuration.

The movement mode

At the top you choose the Movement mode, that is the way the characters move. There are three tabs:

ModeHow the characters move
TileOne step at a time, one cell at a time, classic style.
PlatformSide view, with gravity and jumps.
8 directionsTop-down view, with free movement in 8 directions.

Click the tab you want. Below, the Parameters change, because every mode has its own.

Note

You had already chosen the mode when you created the game, and here you can change it. If you are unsure, pick the one that looks most like your game.

The parameters

Below the tabs you find the Parameters of the mode you chose. They are all numbers. If you type a value that is not allowed, the field turns red, it tells you why, and saving stays blocked until you fix it.

Next to the parameters you read a line about the state of the game's configuration: exists, loaded means the game already has its saved values, and those are the ones you see; does not exist: defaults shown means it has none yet, and the panel shows you the starting values. With Save the values become the game's.

Tile

  • Tile size (px): how big a cell is, in pixels.
  • Step duration (ms): how long a step lasts, in milliseconds. The smaller the number, the faster the character.
  • Map width (cells) and Map height (cells): how many cells the map has, in width and in height.

Platform

The Movement group:

  • Gravity (px/s²): how strongly the character is pulled down.
  • Jump velocity (px/s, negative): how strongly it jumps. It is negative because the jump goes upwards.
  • Walk speed (px/s) and Run speed (px/s): how fast it goes when it walks and when it runs, in pixels per second.

The Collision area group:

  • Collision area width (px) and Collision area height (px): the size of the invisible box the character uses to hit walls and platforms.

The World / Respawn group:

  • Void Y / respawn (px): the height beyond which a falling character is considered outside the world.

8 directions

The Movement group:

  • Walk speed (px/s) and Run speed (px/s).

The Collision area group:

  • Collision area width (px) and Collision area height (px).
  • Collision area vertical offset (px): moves the collision box up or down compared to the character centre. A positive number moves it down. It can also be 0 or negative.

The Players group:

  • Players collide with each other: it is a switch. If it is off, the characters walk through one another. If it is on, they block each other.

The preview

To the right of the parameters you find the Preview, zoomed × 6. It updates while you type the numbers, so you see the effect right away. It shows:

  • the Reference sprite: the character, or a box of its size;
  • the Collision area: the box it uses to hit walls;
  • the Character centre (x, y);
  • the Origin: the point the position is measured from. In Platform it is at the feet, bottom centre; in 8 directions it is the centre of the character; in Tile it is the top-left corner of the cell.

To try it with your character:

  1. Choose the Reference sprite from the list.
  2. If you have no sprite, type the Sprite size (width × height) yourself, in pixels.

Saving the changes

At the bottom of the page, always visible, there is a bar. On the left you read what you changed: No changes, 1 unsaved change or 3 unsaved changes. On the right there are the buttons:

ButtonWhat it does
Discard changesPuts the values back to how they were. It is off if you changed nothing.
SaveSaves the new values. You read Configuration saved… The new values apply from the next server start.
Save and restartSaves and restarts the game server right away, so the new values apply immediately.

The Save and restart button is off until the server is on.

Warning

When the server is on, at the top you read a blue warning: saved changes apply from the next restart. With Save and restart the server starts again right away and the players who were playing are disconnected: they will have to rejoin. Do it when nobody is there.

If you try to leave the page with unsaved changes, the panel warns you.

One tip

Before changing the parameters of a game where people are already playing, make a backup, so you can go back if you don't like the result.