Skip to content

Bézier Curves

Compare
Choose a tag to compare
@JujuAdams JujuAdams released this 12 Sep 14:10
· 1524 commits to master since this release

This release adds Bézier curve transforms for your text!

scribble_set_bezier() defines a cubic Bézier curve to shape text to. The four x/y coordinate pairs provide a smooth curve that Scribble uses as a guide to position and rotate glyphs.

The curve is positioned relative to the coordinate specified when calling scribble_draw() so that the first Bézier coordinate is at the draw coordinate. This enables you to move a curve without re-adjusting the values set in scribble_set_bezier() (which would regenerate the text element, likely causing performance problems).

If used in conjunction with scribble_set_wrap(), the total length of the curve is used to wrap text horizontally and overrides the value specified in scribble_set_wrap(). scribble_set_bezier() will not work with [fa_right] or [fa_center] alignment. Instead, you should use [pin_right] and [pin_center].

 

Issues addressed:

#115 - [delay] and [pause] now stop the text in the correct place for all autotype speed values
#121 - [rainbow] now respects SCRIBBLE_COLORIZE_SPRITES when colouring sprites
#123 - Fixed horizontal alignment

 

How do I import Scribble into my game?

GameMaker Studio 2.3.0 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!