Don't Miss Out

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

Construct 2 Release r128

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

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

Wednesday, May 1, 2013

New this build: parameters dialog improvements and HTML5 export templates!

Parameters dialog improvements

This build should be a big improvement for those of you who use complicated expressions. First up is the parameters dialog now has syntax highlighting, which can make it a lot easier to read expressions. Strings are a reddish brown, numbers are purple, operators are blue, recognised object or family names are green, and behavior names will also appear orange.

Construct 2 syntax hilighting

Next up is error highlighting. Previously if you had made a mistake in an expression, you wouldn't find out until you hit 'Done'. Now mistakes are underlined with a squiggly red line so you can recognise and fix mistakes before trying to close the dialog. For example, below the name of the Player object's instance variable has been mis-spelt, and it's been underlined to show the problem.

Construct 2 error hilighting

There's also new parentheses matching. Having complicated expressions with lots of deeply nested parentheses can get confusing since it's hard to quickly see how the brackets pair up. Now if you move the cursor by a bracket, both in the pair are highlighted to show how they match up. If the selected bracket doesn't match up, it also highlights in red.

Construct 2 brace hilighting

Finally, we've added global autocomplete. Previously an autocomplete popup wouldn't pop up until you typed the dot in an expression, e.g. "Player." before the dropdown suggests things like "X" and "Y" to complete the expression. Now you can just start typing and autocomplete suggests global variables, local variables in scope, object and family names, and system expressions. This can make it quicker and easier to type in expressions!

Construct 2 global autocomplete

HTML5 export templates

Now when exporting as a HTML5 website, you can choose between three templates: normal (what you got before), an 'ad bar' template (reserves room down the side of the page suitable for placing an advert or other content), and an 'embed' template (margins and scrolling disabled, suitable for Kongregate/Newgrounds style iframed games). The ad bar style might make it a bit easier to monetise web games - just paste an advert in to the side bar - and the embed style should save you having to hack the CSS of exported games to work in online arcades.



Parameters dialog: syntax coloring for expressions


Parameters dialog: autocomplete pops up as soon as you start typing


Parameters dialog: typed expressions now underline errors with a squiggly red line in real-time to make it quicker to see mistakes


Parameters dialog: matching parentheses highlighting


Template selection when exporting as a HTML5 website


Layout view: hold shift while placing a paste to paste in-place (objects will paste at their original positions rather than relative to the mouse)


Changed default loading icon from the HTML5 icon to a Construct 2 icon


When switching to an event sheet tab it will update the UI for the layout if C2 can find a single associated layout for the event sheet. (E.g. the layers bar updates if switching to an event sheet directly used by a layout)

Bug Fix

Physics: was broken on CocoonJS and any other minified export

Bug Fix

Dragging a local variable to a new scope did not always update expressions which could cause a crash

Bug Fix

'Pick by UID' now works again when inverted (was broken in r127). Note however the inverted form still iterates every instance like a normal condition; only the non-inverted form uses a single lookup.


Plugins specifying a dependency on a .css file now automatically get the .css file included in the exported HTML page via a link tag


CocoonJS export: now always includes CocoonJS.js, CocoonJS_App.js, CocoonJS_App_ForCocoonJS.js, CocoonJS_Ad.js, and CocoonJS_Store.js (may be useful for third-party plugins depending on CocoonJS extensions)


mammoth 9,706 rep

Awesome possum!

Wednesday, May 1, 2013 at 5:50:29 PM
Przemek32767 25.4k rep

Syntax highlighting is one of my most wanted features! It's great to see it has already been implemented. Keep up the good work!

Wednesday, May 1, 2013 at 5:51:44 PM
glerikud 21.1k rep

Great update. Best software on this market.

Wednesday, May 1, 2013 at 5:52:18 PM
Rory 11.3k rep

Good job Tom & Ashley!

Wednesday, May 1, 2013 at 5:52:37 PM
Kyatric 76.0k rep

Nice list of improvements ! Thank you.

Wednesday, May 1, 2013 at 5:52:49 PM
Paradox 42.1k rep

Oh boy, a day of exploring a new Construct2...

Wednesday, May 1, 2013 at 5:52:54 PM
episuarez 2,879 rep

Good job! :)

Wednesday, May 1, 2013 at 5:55:43 PM
firebelly 7,294 rep

This is a HUGE HELP, HUGE!!!

Wednesday, May 1, 2013 at 5:57:41 PM
stachir 3,693 rep

well done !
again !

Wednesday, May 1, 2013 at 6:09:39 PM
JEtherington 3,888 rep

Happy days!!! :D

Wednesday, May 1, 2013 at 6:10:03 PM
russpuppy 9,496 rep

awesome, I was just thinking about trying to figure out how to get the embed thing to work on websites to disable scrolling. Wish I had this before submitting my game entry to the newgrounds contest--thanks for the nice update though!

Wednesday, May 1, 2013 at 6:11:57 PM
siks 9,435 rep

Nice! I was just here thinking how highlighting would be awesome for the complicated things I'm doing! Thanks!

Wednesday, May 1, 2013 at 6:12:46 PM
Pixel perfick 12.8k rep

Coloured expressions are so cool...Thanks for update.

Wednesday, May 1, 2013 at 6:15:48 PM
SergioRM 6,968 rep

again I say AWESOME!

Wednesday, May 1, 2013 at 6:27:44 PM
ferrod 18.7k rep

Great improvements, thanks,

Wednesday, May 1, 2013 at 6:29:45 PM

Leave a comment

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