Editor: Difference between revisions
-u ndefined- (talk | contribs) (Create page. Rough info) |
-u ndefined- (talk | contribs) m (Add information about axes) |
||
Line 4: | Line 4: | ||
There are two modes: '''edit mode''', and '''play mode'''. | There are two modes: '''edit 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). | |||
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. | |||
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. | 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. |
Revision as of 18:06, 18 December 2024
The editor is where the level's blocks are arranged and the logic is modified. It is available upon editing a level in Build.
There are two modes: edit 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. 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.
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 Raycasts, buttons at the bottom-right corner toggled by advanced inspection, and visible scripting blocks.
Inventory
Recent blocks are shown in this section. Flower, wood, steel, grass, bricks, and stone and custom blocks, if any, are stored while in the editor. 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.
My Blocks
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.
Terrain
Bricks, grass and dirt, foliage, stone, slate, and wood and steel are in this section.
Templates
Some common templates to use, most notably Script Block.
Decor
A flower, shrub, arch, and fifteen variations of sticks contain this folder.
Game
Scripts regarding the game's state.
Objects
Scripts to modify the object and get their position and size.
Sound
Basic scripts to tinker with sounds.
Physics
Scripts for physics-based objects and manipulation. The game's physics engine uses Buller Physics.
- Add Force
- Get Velocity
- Set Velocity
- Set Locked
- Set Mass
- Set Friction
- Set Bounciness
- Set Velocity
- Add Constraint
- Linear Limits
- Angular Limits
- Linear Spring
- Angular Spring
- Linear Motor
- Angular Motor
Control
Manages the flow of logic. Contains user input as well.
Script blocks in this section are yellow.
Math
For computation.
- Negate
- Inverse
- Add Numbers
- Add Vectors
- Subtract Numbers
- Subtract Vectors
- Multiply
- Scale
- Rotate
- Combine
- Divide
- Power
- Equal Numbers
- Equal Vectors
- Equal Objects
- Equal Truths
- Less Than
- Greater Than
- AND
- OR
- NOT
- Random
- Random Seed
- Min
- Max
- Sin
- Cos
- Round
- Floor
- Ceiling
- Absolute
- Modulo
- Logarithm
- Break Vector
- Make Vector
- Normalize
- Dot Product
- Cross Product
- Break Rotation
- Make Rotation
- Distance
- LERP
- Axis Angle
- Screen To World
- World To Screen
- Line vs Plane
- Look Rotation
Values
For constants that pair with variables and calculations frequently.
- Number
- Vector
- Rotation
- True
- False
- Comment
- Inspect Number
- Inspect Vector
- Inspect Rotation
- Inspect Object
- Inspect Truth
Variables
Scripts for storing values of different types to be remembered.
- Get Number
- Get Object
- Get Vector
- Get Rotation
- Get Truth
- Get Constraint
- Set Number
- Set Object
- Set Vector
- Set Rotation
- Set Truth
- Set Constraint
- Set Number
- Set Object
- Set Vector
- Set Rotation
- Set Truth
- Set Constraint
- List Number
- List Object
- List Vector
- List Rotation
- List Truth
- List Constraint
Game names
These are custom blocks from games under Build tab. They are each represented as a blue question mark, unless tapped, in which it shows the first custom block in that order until another folder of a game name is tapped.