Jump to content

Editor: Difference between revisions

2,073 bytes added ,  19 December 2024
More information, with custom blocks as its own section
m (Add information about axes)
(More information, with custom blocks as its own section)
Line 1: Line 1:
The '''editor''' is where the level's blocks are arranged and the logic is modified.
The '''editor''' is where the level's blocks are arranged and the logic is modified.
It is available upon editing a level in [[Build]].
It is available upon editing a level in [[Build]].
The easiest way to edit a game without the tedium of scripting from scratch and  is through [[Kit]]s.


There are two modes: '''edit mode''', and '''play mode'''.
There are two modes: '''edit mode''' (or '''build mode'''), and '''play mode'''.
Edit mode allows to move, place and remove blocks, as well as creating custom blocks and deciding game execution using wires.
Edit mode allows to move, place and remove blocks, as well as creating custom blocks and deciding game execution using wires.
In this mode, two arrows are visible at the origin point `(0, 0, 0), found at the most southwest part of the world (in top-down view).
In this mode, two arrows are visible at the origin point `(0, 0, 0)`, found at the most southwest part of the world (in top-down view).
The arrow to the right is the X axis, while the other arrow is the Z axis. The remaining axis, Y, is not shown, but is perpendicular to the two axes.
The arrow to the right is called the X axis, while the other arrow is called the Z axis. The remaining axis representing height, Y, is not shown, but is perpendicular to the two axes.


Play mode plays the game as usual, but with additional differences: a stop button to return to edit mode, debugging information such as green or red lines by [[Raycast]]s, buttons at the bottom-right corner toggled by advanced inspection, and visible scripting blocks.
A maximum of 10 undos and redos can be performed under editing.
 
Play mode occurs upon tapping the play button. It plays the game as usual, but with additional differences: a stop button to return to edit mode, debugging information such as green or red lines by [[Raycast]]s, buttons at the bottom-right corner toggled by advanced inspection, and visible scripting blocks.
 
== Custom blocks ==
 
These may be sprites or [[Script Block|script blocks]] to accommodate your game.
 
To create a custom block, tap the pencil button on a built-in block or a custom block from a folder of a game name by scrolling below.
 
The game will prompt again for confirmation.
 
From thereon, there is a [[color palette]], and five buttons:
* The '''color palette''' has 11 columns and 3 rows totaling 33 colours to choose from. Use the limitation to your advantage.
* The '''pencil''' button pigments voxels. Tap to paint only one edge of a voxel. Drag to coat a rectangular surface at this cross-section.
* The '''voxel add''' button, signified by a plus sign with a square, creates voxels in the object using the desired colour. Tap to add atop the side of a voxel, or drag for a rectangular area over this side.
: This button can also be used to extend the block size of the object: in a voxel bordering the block, tap (and drag) on the side where the voxel touches the boundaries. This will cause the custom to newly occupy it, unless the boundary exceeds 4 blocks along that axis or a same custom block prevents it due to blockage.
* Oppositely, '''voxel remove''', signified by a minus sign instead, deletes any voxels in the object. Tap on a voxel to delete it. Drag to remove a rectangular area along the side's axes.
: In an opposite manner, this button can shrink the boundary of the custom block provided that those respective blocks do not contain voxels anymore.
* The '''brick stud''' reveals the sides which have [[glue]] on it. Tapping and dragging functionality is similar to '''pencil''' button; here, it removes or adds glue to the sides of the voxels.
* The '''camera''' rotates, pans, and zooms the camera.
 
Below these buttons is an undo, redo, and OK button.


== Inventory ==
== Inventory ==
Line 15: Line 38:
Drag to place blocks in the level.
Drag to place blocks in the level.


Clicking on the '+' button shows folders. Any block you tap or click puts it to the front of the inventory row.
Clicking on the '+' button shows folders.
Any block you tap or click puts it to the front of the inventory row.
Tap 'X' to exit.


=== My Blocks ===
=== My Blocks ===


This is where custom blocks are stored.
This is where custom blocks are stored.
To create a custom block, tap the pencil button on a built-in block or a custom block from a folder of a game name by scrolling below.
See [[#Custom blocks]] for details.


=== Terrain ===
=== Terrain ===
Line 29: Line 54:


Some common templates to use, most notably [[Script Block]].
Some common templates to use, most notably [[Script Block]].
* [[Box]]
* [[Sphere]]
* [[Physics Box]]
* [[Physics Sphere]]
* [[Pass Through]]
* [[Script Block]]


=== Decor ===
=== Decor ===