Don't Miss Out

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


Lightning Draw

Guest

10.657 seconds

linkman2004

16.723 seconds

UberLou

24.68 seconds

For the first 3 people to download this release!

Quick Draw

Jaczkulinek

35.147 seconds

AndrewC73

46.583 seconds

Index

48.347 seconds

Guest

48.47 seconds

Kastas

53.12 seconds

Guest

53.867 seconds

Guest

54.773 seconds

plut

54.803 seconds

Kyatric

56.817 seconds

McKack

1m 8s

Guest

1m 9s

Esdreika

1m 10s

Be one of the first 15 people to download this release!

Construct 2 Release r136

This is an old Beta release! Download the latest Beta release instead here.
Download

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".

Changelog

Feature

New official Sprite Font plugin

Feature

New Timer behavior

Add

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

Add

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

Add

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

Change

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.

Change

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

Change

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

Change

Event bookmark icons updated

Change

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

Change

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.

Change

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.

Change

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.


Comments

9
eony321v 3,898 rep

Yay! Thank's Scirra Team!

Another great update!

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

F_ yeah Sprite Font visible in Editor!

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

Awesome! :)

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

Awesome, as always, thanks Scirra !

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

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

Tuesday, June 25, 2013 at 6:16:10 PM
6
GeometriX 12.6k 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
6
dodo021 5,314 rep

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

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

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

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

Sounds like one more nice update.
Good job !

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

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

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

Nice work team!

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

Awesome, Guys! Just, AWESOME.

Tuesday, June 25, 2013 at 6:28:04 PM
5
damainman 7,953 rep

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

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

Nice update team, thanks.

Tuesday, June 25, 2013 at 6:47:17 PM
4
AbelaNET 14.8k 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.