Wobbling, Pulsing, Easier Sprites
Scribble's shader has been improved!
Version 5.3.1 improves sprite handling substantially. Sprites will now reliably default to centring themselves on lines of text without needing to fiddle around with sprite origins. If you'd like to customise exactly where a sprite is drawn, set the SCRIBBLE_ADD_SPRITE_ORIGINS
macro to true
(it's false
by default). SCRIBBLE_FORCE_NO_SPRITE_ANIMATION
has been removed.
Additionally, text that uses different size fonts is also centred properly on each line.
The attribute layout for Scribble vertex buffers has also been changed. Now, the position X and Y coordinates are used to encode the centre of the character's quad. The normal X and Y components are used to encode the offset (the "delta") that the vertex should use. The worldspace position of the vertex is calculated by adding the offset to the centre. This means that scaling and rotation effects are possible and, to that end, two new effects have been introduced: wobble and pulse. Wobble will rotate a character around its central point whereas pulse will scale it.
This version also adds in default native GameMaker colour constants that had been missed, and improves JSON verification error messages. Some unnecessary console messages have been removed and new ones have been added to aid with debugging.
How do I import Scribble into my game?
GameMaker Studio 2.2.3 allows you to import assets (including scripts and shaders) directly into your project via the "Local Package" system. From the resources below, download the .yymp file. In the GameMaker IDE, load up your project and click on "Tools" on the main window toolbar. Select "Import Local Package" from the drop-down menu then import all scripts and shaders from the Scribble package. Now you're all set up to use Scribble!