Don't Miss Out

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


Lightning Draw

McKack

6.38 seconds

EpicPixel

11.386 seconds

Sean Noonan

14.32 seconds

For the first 3 people to download this release!

Quick Draw

Przemek32767

26.973 seconds

Eisenhans

4m 56s

mudmask

6m 53s

Aphrodite

6m 54s

Guest

6m 8s

oserk

7m 60s

andreyin

8m 38s

Aphrodite

8m 25s

Guest

10m 37s

Aphrodite

10m 50s

Guest

10m 12s

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

Construct 2 Release r240

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

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

Wednesday, November 16, 2016

Update 18:03 GMT: the original download did not start due to a digital signature error. We've updated the download with a fix so please download it again if you see an error. Sorry for the inconvenience!

New this build: basic WebGL 2 support, new triggers for offline events to replace the old AppCache-based ones, switched to standards-based Pointer Events where available, and several other changes and bug fixes.

WebGL 2

The runtime now uses WebGL 2 if the browser supports it. This probably sounds bigger than it really is - for the most part it is still executing the same code it did before, but there are two changes in WebGL 2 mode:

  1. Non-power-of-two (NPOT) tiled backgrounds can now tile perfectly without internally stretching it to a power-of-two (POT) size first, which could in some cases degrade the quality
  2. Other NPOT images like sprites now have mipmaps created, which allows for better and more consistent downscaling quality regardless of the image size

That is the only benefit of WebGL 2 for now. WebGL 1 is of course still fully supported and it will revert to that if WebGL 2 is not available. In future we may be able to make use of more WebGL 2 features to help optimise or enhance the rendering engine, but for now we're just fixing the POT restrictions since WebGL 2 has better capabilities there and it's straightforward to do.

WebGL 2 is not currently available in any stable browser, but it was just enabled by default for Chrome 56. You can try it early with Chrome Canary, or by going to chrome://flags and enabling the WebGL 2 flag. Other browsers should be following soon (all vendors are actively working on WebGL 2). When WebGL 2 is in use, the runtime will log "Using WebGL 2 renderer: ..." in the browser console. You can also check if it's supported in Chrome by going to chrome://gpu and reviewing the status for WebGL 2.

Triggers for offline events

When we introduced the new Service Worker based offline support, we had to remove the old offline events ("Is downloading update" and "On update ready") since the new offline system worked differently and it was difficult to support them in the same way. We've now brought back three new triggers which work with Service Worker. These are:

  • On offline ready: this is triggered on the first run when offline caching has finished, and the game can now work offline. (Previously there was no equivalent, this is new.)
  • On update found: triggered when an update starts downloading in the background. (Note this is a trigger which fires once, as opposed to the old "Is downloading update" condition.)
  • On update ready: triggered when an update has finished downloading in the background. Closing and reopening the browser tab will start using the update.

Note these triggers can occur before the game has started, in which case they are buffered, and will fire immediately after "On start of layout" on the first layout. This is to avoid the events going undetected if your game hasn't started yet.

Pointer events

For a long time there have been two APIs to detect touch input: Apple-style touch events (e.g. "touchstart", "touchend") and Microsoft-style pointer events (e.g. "pointerdown", "pointerup"). Pointer events have subsequently become the preferred standard and browsers are starting to move to the new API. C2 now uses standards-compliant detection of pointer events and (as before) will use pointer events instead of touch events if available. The reason this is being highlighted is because Chrome 55 will enable pointer events, which means C2 games will switch from touch events to pointer events from then on. Despite the fact we've long supported pointer events for IE and Edge, this could cause some bugs or incompatibilities if Chrome has any differences between the two APIs, so it's worth looking out for any issues around touch input in Chrome.

Changelog

Feature

Basic WebGL 2 support: runtime now uses WebGL 2 if available, and better supports non-power-of-two textures when using it

Add

Browser plugin: new triggers 'On offline ready', 'On update found', 'On update ready'. These only work with the new Service Worker offline support, but let you respond to update progress.

Add

Sprite, Tiled Background, Tilemap: 'Load image from URL' action can now specify cross-origin as "anonymous" or "none". The default was previously always "anonymous", but sometimes servers require "none" to work.

Change

Moved to standards-compliant detection of pointer events. This fixes a deprecation warning in the console. Note Chrome will start using pointer events instead of touch events soon.

Change

The runtime now always creates a canvas with an alpha channel. This fixes blend modes not working when alpha disabled (e.g. NW.js), and enables transparency on the canvas itself.

Bug Fix

Turret behavior: now fires "On shoot" when rotation is disabled

Bug Fix

Multiplayer: fixed error reporting so it doesn't say "[object Event]"

Bug Fix

Shadow light: could fail to render shadows for objects just outside the viewport

Bug Fix

'On load failed' did not always trigger when loading invalid JSON (e.g. empty string)

Bug Fix

Event sheet: Ctrl+A while editing a comment now selects the text instead of the events


Do you like this release?

We'd love it if you could show your appreciation of it by retweeting and sharing it on Facebook and Twitter!

Posted by Scirra Ltd on 11/16/2016

Comments

1
TecenGOD 510 rep

Thanks ^_^

Wednesday, November 16, 2016 at 5:16:53 PM
2
Gigatron 20.8k rep

@Ashley Thank you very much for Webgl2 i am studying it since several month ...

Wednesday, November 16, 2016 at 5:21:17 PM
1
TecenGOD 510 rep

---------------------------
Construct 2
---------------------------
There was a problem with Construct 2's digital signature (error code 0x800b0100). Usually installing all updates on Windows Update fixes this. Please contact [email protected] for more information.
---------------------------
ОК
---------------------------

Wednesday, November 16, 2016 at 5:21:41 PM
2
hmott 1,503 rep
---------------------------
Construct 2
---------------------------
There was a problem with Construct 2's digital signature (error code 0x800b0100). Usually installing all updates on Windows Update fixes this. Please contact [email protected] for more information.
---------------------------
ОК
---------------------------
quoted from TecenGOD

Same here. Reinstalling previous version worked by ignoring one error I didn't understand.

Thx.

Wednesday, November 16, 2016 at 5:24:49 PM
2
TheRealDannyyy 42.2k rep

C2 Steam user here and experiencing the same thing.
I guess r240.1 is already on the way?

I could provide more details if required.

Wednesday, November 16, 2016 at 5:28:09 PM
2
Gigatron 20.8k rep

Hope this issue will fixed soon..

Wednesday, November 16, 2016 at 5:29:15 PM
4
Ashley 189.8k rep

Sorry about that - had a glitch with the digital signature. Should be fixed now.

Wednesday, November 16, 2016 at 6:05:18 PM
2
mercy 5,820 rep

Thank You for this release!

Wednesday, November 16, 2016 at 6:10:31 PM
1
TecenGOD 510 rep

Please fix it on steam.

Wednesday, November 16, 2016 at 6:13:14 PM
1
Lordshiva1948 39.1k rep

Thank you boys nice work

Wednesday, November 16, 2016 at 6:15:34 PM
1
TheRealDannyyy 42.2k rep

Thanks, the Steam version is working fine now.

Wednesday, November 16, 2016 at 6:21:48 PM
1
gillenew 24.6k rep

amazing job scirra team! thank you for this update :D

Wednesday, November 16, 2016 at 6:22:58 PM
1
glerikud 20.2k rep

Always keeping up with cutting-edge technology, awesome. Thank you Scirra. :)

Wednesday, November 16, 2016 at 6:23:07 PM
1
bilgekaan 23.2k rep

Thank you!

Wednesday, November 16, 2016 at 6:40:54 PM
1
chadorireborn 59.1k rep

Great Update! WebGL 2 ! :D .... But it's not yet supported on mobile though... :/

Wednesday, November 16, 2016 at 6:58:43 PM

Leave a comment

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