Editor: Difference between revisions
→Decor: Improve wording
-u ndefined- (talk | contribs) (Create page. Rough info) |
(→Decor: Improve wording) Tags: Mobile edit Mobile web edit |
||
(7 intermediate revisions by one other user not shown) | |||
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 is through use of [[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 <code>(0, 0, 0)</code>, found at the most southwest part of the world (in top-down view). | |||
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. | |||
Fancade 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''' button rotates the camera, moving it towards the block being edited in the center of the screen with a single finger. | |||
Irrespective of option, you can pan, zoom and rotate the camera with two or three fingers. | |||
Below these buttons is an undo, redo, and OK button. | |||
Edit a custom block by tapping the pencil button again. | |||
It will not confirm in this case. | |||
Similarly, edit the current name of the custom block by tapping it. | |||
A maximum of 16 characters are allowed. | |||
To delete a custom block, remove every instances of the block, which may or may not be across multiple levels, so that when the last block is removed, an 'X' button with a red background appears beside the remove button. | |||
Drag the block in this location to delete it. | |||
The button to the left of the pencil button is the open block button. | |||
Press to reveal its contents inside. | |||
This area is most commonly used to store scripts and other necessary objects to an accessible location, inside [[script block]]s and one-off sprites (e.g. [[Longcat]]). | |||
You may not edit a custom block inside another block without placing it on the floor first. | |||
A currently opened custom block may not be moved to another location without closing it. | |||
Opening another block closes the other for the new block. | |||
Tap the open block button again to close it. | |||
An object's [[collider]] depends on the glue and the mode set. | |||
To change the property and collision type, press the gear button beside the name of the custom block. | |||
There is a [[Limitations in Fancade scripting#Maximum custom blocks|custom block limit]] imposed to each game. | |||
In a nutshell, the number of levels, in addition to how many blocks each custom block in inventory occupies cannot reach 256. | |||
== Inventory == | == Inventory == | ||
Line 13: | Line 63: | ||
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. | ||
See [[#Custom blocks]] for details. | |||
=== Terrain === | === Terrain === | ||
Line 27: | Line 79: | ||
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 === | ||
A flower, shrub, arch, and fifteen variations of sticks | A flower, shrub, arch, and fifteen variations of sticks are contained in this folder. | ||
=== Game === | === Game === | ||
Line 68: | Line 127: | ||
=== Physics === | === Physics === | ||
Scripts for physics-based objects and manipulation. The game's physics engine uses | Scripts for physics-based objects and manipulation. | ||
The game's physics engine uses Bullet Physics. | |||
* [[Add Force]] | * [[Add Force]] |