Skip to content

Extra Formatting

Compare
Choose a tag to compare
@JujuAdams JujuAdams released this 11 Jul 17:29
· 1577 commits to master since this release

This release adds the oft-requested [cycle] tag!

The cycle tag can be thought of like a customised [rainbow] colour scroller, allowing you to define up to 4 hues for Scribble to cycle through. These colours are defined as hue values from 0 to 255 inclusive (e.g. [cycle,90,110,130]Text![/cycle]). The saturation and value parameters are set for the entire text element with scribble_set_animation() using the SCRIBBLE_ANIM.CYCLE_SATURATION and SCRIBBLE_ANIM.CYCLE_VALUE fields. The hue values used for [cycle] tags can be customised per tag.

 

Issues addressed:

#84 - Adds [r] [b] [i] [bi] tags to quickly switch between regular/bold/italic variants of a typeface. This can only be used on normal (non-spritefont) fonts, and regular/bold/italic variants of a font must be explicitly created and added to Scribble like any other font. To swap between regular/bold/italic versions of a font, the fonts must have the same typeface and the exact same font size
#85 - Adds [cycle] to rotate the colour of text through up to 4 different hues in HSV space. See above
#86 / #88 - Adds scribble_combine_fonts() which allows for two or more fonts to be combined together to make a single font
#89 - Added __scribble_config() as a deprecated script to prevent old macros from persisting after upgrading from v5.x to v6.x
#90 - _events_char_array is now initialised properly when retrieving a non-default occurrence
#91 - Changes prefixed unary operators to suffixed to fix import issues into GMS2.3.0
#92 - scribble_set_blend() and scribble_set_starting_format() now accept strings that correspond to names created with scribble_add_color()
#95 - Fixed fade out animation

 

Additionally:

  • [/] should now be used to clear formatting. [] has been deprecated and will be removed in v7.x
  • The [pin_*] text justification tags will now use the maximum width set by scribble_set_wrap() as a reference point for positioning
  • scribble_autotype_get() will return 1.0 for totally empty pages
  • Animated sprites can now be coloured using the standard in-line formatting tags (including [rainbow] and [cycle])
  • Vertex buffer writing has been restructed to pack data more efficiently. Scribble glyphs are now limited to 200x200 pixels
  • Scribble vertex buffers will now render mostly correctly without any shader being set. This behaviour is experimental, but this should allow for custom shaders in the future

 

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!