Construct 2 Release r186

Thursday, October 30, 2014

New this build: autocomplete for animation, layer and event groups in the event sheet view, Tilemap 'Load image from URL', a new 'After preview' autosave option, and more!

Note the way function name suggestions are done has changed from r185. It used to show a standard Windows dropdown list with possible options. However this control does not support the normal expression control features like autocomplete and syntax highlighting, making it harder to use for some particular use cases. To resolve this, now the function name parameters are normal expression controls, and the suggestions come in the autocomplete box when you type the first " character. It looks like this:

This also selects the best match as you type, which is probably better than the old dropdown list anyway. We've also rolled out this new approach to animation names, layer names, and event group names. Here's what it looks like in a 'Set animation' action in Space Blaster:

This should make it a lot quicker and easier to add events using these features, since you don't have to cross-reference with other parts of the project any more - it's all right there in the autocomplete!

Changelog

Add

Animation, layer, and event group name parameters now have autocomplete support, listing available options when typing the first "

Add

Tilemap: 'Load image from URL' action, 'On image URL loaded' trigger

Add

Preferences: new autosave option for 'After preview'

Add

System: 'Is NaN' condition

Change

Replaced the function name auto-complete dropdown in r185 with autocomplete support in the normal expression control when typing the first "

Change

Audio: if 'play in background' is false, the entire audio context is now suspended when switching tab/going in to background (where supported; currently only Chrome 40+). This causes the entire audio context to stop processing audio, allowing audio hardware to power down and save battery on mobile.

Change

Tilemap: now defaults 'Seamless' mode to 'On', and the editor no longer nags to change project settings when inserting tilemaps, on the basis the minor performance impact of seamless mode is worth it to avoid headaches with seams appearing or changing the rendering quality of the game.

Change

CocoonJS: enabled lazy-loading for all images since that is how real browsers work and what the engine expects. Note we still do not officially support CocoonJS and cannot vouch for whether this will solve memory usage issues or not.

Bug Fix

Ejecta export broke in r185

Bug Fix

'Sounds' and 'Music' folders did not remember expanded/collapsed state in project bar when saving

Line of sight: sometimes incorrectly indicated line-of-sight when using family behaviors

Bug Fix

Can now turn off breakpoints after they've been moved in to a trigger

Bug Fix

Video: improved r185's workaround to the Chrome for Android bug that prevented video rendering. Now it works properly with in-canvas rendering (so effects can be applied and objects layered on top), whereas in r185 it always layered above the canvas.