Frequently asked questions in Scripting: Difference between revisions
-u ndefined- (talk | contribs) m (Add "How can I add a Virtual Gamepad or UI Buttons to my game?" old wiki article, with minor changes) |
(Changed a link from List Element to List) |
||
Line 37: | Line 37: | ||
Other scales are possible using this method, such as the 31-note scale by dividing by 31 instead. | Other scales are possible using this method, such as the 31-note scale by dividing by 31 instead. | ||
In fact, given a [[List | In fact, given a [[List]] with the tuning of each note in a scale, one can achieve finer control: | ||
:o ^ (s[n % l] + floor(n / l)), where | :o ^ (s[n % l] + floor(n / l)), where |
Revision as of 21:24, 4 July 2024
This page lists the short, common questions asked when scripting or building a game.
Fonts
In alphabetical order:
- Alphabates by arindam
- AwKward Font by ToxelEr
- Font by Pi
- Font Azkaazma by Azkaazma2 (Only capital font, and D has to be manually created)
- Font Blocks by Sawdust
- PF's Font by PurpleFofo
Virtual Buttons
The Joystick and Button script blocks have been provided since then. It used to be commonplace to build one manually, or use these custom scripts created by these people:
- Virtual Gamepad by Martin Magni
- Neo Controller by Sounak9434
- Virtual Joystick by ViChyavIn
- Drag Controls by Tim0lmazan
Music
Composing music
Using Tim0lmazan's 'game music kit', you can make music with blocks which don't have any scripts inside them You might need to copy the sheet block a little to make longer songs. Also, the sound pitch depends on the Z position.
Manually
Pitch scales exponentially, not linearly. Two sounds played with the same numerical difference but different ranges will not sound the same in pitch difference.
To get the 12-note scale, use an integer, divide by twelve and power two by the result, because an octave in this scale doubles the pitch.
Other scales are possible using this method, such as the 31-note scale by dividing by 31 instead. In fact, given a List with the tuning of each note in a scale, one can achieve finer control:
- o ^ (s[n % l] + floor(n / l)), where
- n is an integer, the note to be played,
- s is the list of the notes in an ordered ratio,
- l is the length of the scale, and
- o is the ratio of the octave, usually 2 for regular octave.
Numbers on the list s should not exceed 1.
Pre-made music
Find a editable working music on Fancade game search on the Fancade app. But if you think the music is too bad for your game, then try to modify it. (If you can't modify it, then the music kit is set to 'Levels' and you can't make a editable game using it.)