Frequently asked questions in Scripting: Difference between revisions
m
Adapted from old article "How to change the background color on play?"
-u ndefined- (talk | contribs) m (Add a few FAQs) |
-u ndefined- (talk | contribs) m (Adapted from old article "How to change the background color on play?") |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
This page lists the short, common questions asked when scripting or building a game. | This page lists the short, common questions asked when scripting or building a game. | ||
== Frames per second == | |||
:''Main article: [[Time]]'' | |||
[[Fancade]] runs at 60 frames per second. Note that for more intensive games, graphics may slow down (from a tiny amount to noticeable lag) but the game will still execute scripts at 60 frames per second. | |||
== Can't move camera in edit-mode == | == Can't move camera in edit-mode == | ||
Line 15: | Line 21: | ||
== How to delete a block? == | == How to delete a block? == | ||
:''Main article: [[Editor#Custom blocks]]'' | |||
To delete a custom block permanently, first make sure there are no copies of the block/script in the world or inside any other block. | To delete a custom block permanently, first make sure there are no copies of the block/script in the world or inside any other block. | ||
Then grab the block you want to delete and drag it, you should see a red X appear in the bottom right corner, drag the block there and it'll get deleted. | Then grab the block you want to delete and drag it, you should see a red X appear in the bottom right corner, drag the block there and it'll get deleted. | ||
== How to copy a custom block? == | |||
A method commonly used is: edit another game, usually a new blank game, and then place the custom block by finding the folder of that game in the inventory. | |||
Afterwards, return to said game and drag that block (of the other). | |||
A pencil button should appear. | |||
== How to rotate a block? == | == How to rotate a block? == | ||
Likewise, there is currently no way to rotate blocks in build-mode. | |||
If you must have a block with multiple rotations, you'll have to make multiple blocks. | If you must have a block with multiple rotations, you'll have to make multiple blocks. | ||
An alternative is to rotate the object in play-mode, using [[Set Position]]. | An alternative is to rotate the object in play-mode, using [[Set Position]]. | ||
== Changing background on play == | |||
There's currently no way to change the background color during gameplay, but a workaround is to use a couple of giant custom blocks as the background and turn them on and off as you wish. | |||
{{Image|Background change example.jpg}} | |||
== Fonts == | == Fonts == |