Don't Miss Out

Follow us now so you don't miss new releases!

Construct 2 Release r136

There is a more up to date Stable Release! Download the latest Stable release instead here.

107.3 mb, Windows 8/Windows 7/Vista/XP

Tuesday, June 25, 2013

New this build: a new official Sprite Font plugin, a new Timer behavior, some regex system expressions, and a number of other changes and fixes.

Sprite Font plugin

While there has been a third-party Sprite Font on the forums for some time, it was unmaintained and missing a few features, and concerns were raised about its future. To remedy this we've now developed an official Sprite Font plugin. Note this plugin is original and incompatible with the old third party plugin. To replace the old plugin you'll need to completely delete it and re-make everything with the new plugin. It might be easier to save the official plugin for new projects only.

If you aren't familiar with Sprite Fonts, it's basically like the ordinary Text object, but draws text using an image. The image has a grid with every character you want to use drawn on it, then text is rendered by drawing each character from the image in the correct sequence.

Construct 2 r136 Sprite Font plugin

Sprite Fonts have both advantages and disadvantages over the ordinary Text object with Web Fonts. The main advantage is you have ultimate control over the font: you can get each pixel exactly as you want, using any colors, outlines, borders or styling you want. However the disadvantages include only really supporting one font size and weight (the one it's drawn at), and it can be difficult to support some languages with large character sets like Chinese and Japanese. You can set pretty much any unicode character to be used in the sprite font using the 'character set' property, but for languages which use thousands of characters it can become difficult to cover everything. This also means it's pretty much impossible to cover all languages (since you'd need a character set with potentially tens of thousands of unicode characters). This can make it difficult to translate your game or properly support user inputted text. However if you're aware of the limitations, you can have complete artistic control over the appearance of text in your games.

The official Sprite Font plugin also has some new features over the old one, including rendering in the editor, and setting individual character widths (so for example 'i' can be displayed using less horizontal space than 'W'). As usual we'll be updating documentation to cover new features just before the next stable release.

Timer behavior

The new Timer behavior is pretty simple: you can just set an 'On timer' event to run regularly, or just one-off after a delay. The advantage of the behavior over using 'Wait' or 'Every X seconds' is that it measures the time for each instance individually. It's basically a shortcut to adding 'dt' to an instance variable every tick.

Regex system expressions

Regular expressions (regex for short) are a powerful, industry-standard way of searching and replacing in text in a sophisticated manner. This isn't the place to explain them in detail - there are lots of good guides on the web - but the new system expressions allow you to access the power of regex. For example you can match the regex "level(\d*)" against the string "Which level was it, level21 or level12?" and determine that there are three matches: "level", "level21" and "level12".



New official Sprite Font plugin


New Timer behavior


System object regex features: 'Regex test' condition; expressions 'RegexSearch', 'RegexReplace', 'RegexMatchCount', 'RegexMatchAt'


Added a new platform-specific 'Stride' plugin. This is for use with Stride Academy as part of our partnership with LTS Education Systems.


Bookmarks bar: now includes text describing bookmarked events, e.g. "System: Start of layout" instead of just "Event"


CocoonJS: we've now enabled the letterbox fullscreen modes for CocoonJS. It seems to align the display incorrectly, but we'll investigate this for the next build.


The local preview server should now send the correct MIME type for .eot and .ttf font files.


System: 'For' loops can now run backwards (when the end value is lower than the start value)


Event bookmark icons updated


Project bar: could sometimes scroll away when dragging object types to folders, should now at least keep the dropped item in view


Layout view: updated editor text renderer to use Freetype 2.5. This may fix some minor bugs and improve text rendering quality, especially at small sizes.


Anchor behavior: enabling the behavior when it is disabled now anchors to the object's current position. Previously it still anchored to the object's old position.


Steam build: updated Steamworks API to latest version

Bug Fix

Crash pressing alt introduced in r135 (oops :P)

Bug Fix

A few theme colors didn't work properly - they should all now be correct

Bug Fix

Line of sight behavior: 'Has LOS to' did not work properly when inverted

Bug Fix

Navigating to bookmarks hidden by collapsed groups/events now expands them so the bookmark can be seen

Bug Fix

Import Audio dialog: was accidentally case sensitive on file extensions (so .WAV would not import but .wav would)

Bug Fix

Javascript error using User Media object in CocoonJS (note: the object is still not supported, but at least does not crash the app)

Bug Fix

Bug with texture management in WebGL renderer could cause sprites to go blank after export if they had deduplicated images

Bug Fix

Platform behavior: could end up shaking when running up to wall at top of slope

Bug Fix

Automatic spritesheeting on export could sometimes emit a bigger spritesheet than necessary, wasting memory.


eony321v 3,898 rep

Yay! Thank's Scirra Team!

Another great update!

Tuesday, June 25, 2013 at 6:07:30 PM
herniewise 3,272 rep

F_ yeah Sprite Font visible in Editor!

Tuesday, June 25, 2013 at 6:11:17 PM
Jayjay 23.0k rep

Awesome! :)

Tuesday, June 25, 2013 at 6:11:54 PM
Temoana 5,165 rep

Awesome, as always, thanks Scirra !

Tuesday, June 25, 2013 at 6:12:53 PM
EncryptedCow 8,786 rep

Wooooo spritefont! Thanks a lot for your hard work :)

Tuesday, June 25, 2013 at 6:16:10 PM
GeometriX 12.7k rep

Wow, quite a release, this. Two very handy new features and a lot of interface fixes and updates. This is brilliant, Scirra!

Tuesday, June 25, 2013 at 6:16:19 PM
dodo021 5,814 rep

Thanks for the Sprite Font plugin ! Good job Scirra team. =)

Tuesday, June 25, 2013 at 6:17:05 PM
tavitooo 5,711 rep

Thanks guys!!! sprite Fonts plugin are awsome!!

Tuesday, June 25, 2013 at 6:18:27 PM
Kyatric 76.0k rep

Sounds like one more nice update.
Good job !

Tuesday, June 25, 2013 at 6:20:14 PM
PixelPalette 8,201 rep

Sprite font! Thanks. Also the timer is also cool. 8D

Tuesday, June 25, 2013 at 6:21:41 PM
darktoad 3,211 rep

Nice work team!

Tuesday, June 25, 2013 at 6:26:56 PM
InvaderX 6,347 rep

Awesome, Guys! Just, AWESOME.

Tuesday, June 25, 2013 at 6:28:04 PM
damainman 8,015 rep

Absolutely EPIC! Thank you for SPRITE FONT!!!!!!!!!

Tuesday, June 25, 2013 at 6:32:28 PM
ferrod 18.7k rep

Nice update team, thanks.

Tuesday, June 25, 2013 at 6:47:17 PM
AbelaNET 14.9k rep

Thanks keep it up.

Tuesday, June 25, 2013 at 6:48:33 PM

Leave a comment

Everyone is welcome to leave their thoughts! Register a new account or login.