Don't Miss Out

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


Lightning Draw

Przemek32767

16.247 seconds

Ludonaut

50.433 seconds

aruche

2m 31s

For the first 3 people to download this release!

Quick Draw

aruche

2m 35s

Guest

2m 51s

spudly

2m 60s

Aragami

2m 4s

qu0y

2m 13s

zenox98

2m 26s

gnahz

2m 26s

Guest

2m 30s

Tsengar

3m 37s

Guest

3m 43s

shinkan

3m 43s

Eisenhans

3m 14s

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

Construct 2 Release r171

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

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

Thursday, June 05, 2014

New this build: three new plugins - video, slider bar and progress bar! There's also a new tagging feature for shadows so more advanced effects are possible, particularly with having different shadows at different levels of Z order (e.g. scenery covering up an object which can also cast its own shadow underneath itself).

Slider and progress bars

These new form controls are pretty straightforward. The slider bar has a slider along a line which you can use to select a value between a minimum and maximum. The progress bar is a browser-styled bar (so it looks in keeping with the rest of the browser/OS, like a native control) which can be used to display a percentage of progress. It also supports an indeterminate state, when progress is unknown (e.g. waiting for a connection to complete), but note iOS does not support intererminate progress bars.

Unfortunately Internet Explorer 9 does not support either of these controls, but IE10+ and all other browsers do, and the share of IE9 is pretty small now so should not pose a problem.

Video plugin

This new official Video plugin allows for video playback in Construct 2 games. Unlike the form controls it actually renders inside the game, meaning other objects can be placed on top of it, and you can even apply effects to it in WebGL mode. However again iOS is an exception: iOS does not support rendering videos to canvases, so on iOS the video will float above the game like a form control. On Safari for iPhone it's even worse and it absolutely insists on playing video fullscreen. This behavior is forced by the Safari browser and there's no way around it: as soon as the video starts playing, it brings the video up in to fullscreen and adds playback controls. For watching something like a cutscene it might be OK, but for other purposes it might be less useful. We've reported the issue to Apple and hopefully this is something that can be changed in iOS 8.

On Safari for iOS and Chrome for Android, note that like with music, video playback can only begin in a user input event. If you set the video's 'Autoplay' property to 'Yes', on these platforms it will wait until the first touch event and start the video then. Even when using the 'Play' action, it will be ignored unless it's in a user input trigger like 'On any touch start'. Bear this in mind.

Regarding video formats, as with audio, browser makers simply cannot agree on one video format that can play in all browsers. The most widely supported is H.264, but it still does not reach all platforms. It is also patent-encumbered so there could be fees to use the encoders, especially for commercial purposes. WebM or Ogg Theora can play reliably in most browsers except for Internet Explorer and Safari, but it is a free format without patent restrictions or fees. Therefore as with our audio support, the video plugin will attempt to play the free formats first, and fall back to H.264 last. The flow goes like this: if a WebM source is provided and WebM is supported by the browser, play that; else if an Ogg Theora source is provided and Ogg Theora is supported by the browser, play that; else if a H.264 source is provided and H.264 is supported by the browser, play that. Note pretty much every browser that supports WebM also supports Ogg Theora, so you should only need a WebM source or an Ogg Theora source (no need for both), and a H.264 fallback. If you don't have a source for a free format, or you don't have a H.264 source, some platforms will not be able to play the video. If you know your platform in advance though, that's OK - node-webkit can play WebM, and Windows Store apps only play H.264.

Due to the complexities of the patent-encumbered H.264 and the wide array of video formats in common use, Construct 2 does not provide a video importer like it provides for audio. You must encode the videos yourself and import them as project files. Also note you will need to set the following MIME types for the server if hosting videos for browser games: video/webm for .webm videos, video/ogg for .ogv videos, and video/mp4 for .mp4 (H.264) videos.

Changelog

Add

New video plugin (no icon yet - will be updated soon!)

Add

New form control plugin: Slider bar (no icon yet - will be updated soon!)

Add

New form control plugin: Progress bar

Add

Shadow light/shadow caster: can now assign tags to both shadow lights and shadow casters, and set the lights to cast shadows off objects with the same or different tags. This allows creating more advanced lighting effects where different lights cast shadows off different objects.

Add

Browser: 'Go to URL' action now has a 'target' parameter to navigate the parent or top window when framed

Bug Fix

Shadow light: can now correctly cast shadows off tilemaps with the shadow caster behavior

Bug Fix

Event sheet view: shift+selecting events after a search would select hidden events in between the selection

Bug Fix

Shadow light: could sometimes double-render shadows causing incorrect results if opacity changed

Bug Fix

Facebook plugin: could sometimes fail to trigger 'On ready' even if 'Is ready' is true.

Bug Fix

Exports in r170 could sometimes display images offset by 1px

Bug Fix

Objects not destroying on iOS 8 Safari beta due to a missing Javascript feature

Bug Fix

Platform behavior: landing on a slope at the peak of a jump sometimes did not set 'Is on floor' to true or correctly switch animation


Comments

9
Nickydude 11.2k rep

I was just looking for someway to show video the other day! Talk about timing! :)

Thursday, June 05, 2014 at 5:17:18 PM
5
aruche 4875.3k rep

Awesome new form controls. Thanks!

Thursday, June 05, 2014 at 5:17:26 PM
5
yonda 4,154 rep

uiii Nice work guys

Thursday, June 05, 2014 at 5:17:26 PM
7
justifun 17.9k rep

If anyone is looking for a great free video encoder checkout "Freemake Video Converter" Its awesome. www.freemake.com

Not spam, just a huge fan!

Congrats scirra on officially adding video support!

Thursday, June 05, 2014 at 5:19:38 PM
6
facecjf 7,994 rep

OMG! This is a great update! Well... they are always great updates. :D

Thursday, June 05, 2014 at 5:21:19 PM
6
iceangel 32.7k rep

New plugin video ... excelent!!!

Thursday, June 05, 2014 at 5:23:05 PM
5
Squid 5,575 rep

Nice. I was just wondering when a new revision would drop.

Thursday, June 05, 2014 at 5:25:07 PM
4
ThomasSockeel 554 rep

Thanks for this new release !

Thursday, June 05, 2014 at 5:27:57 PM
4
Paradox 40.6k rep

Thanks, great start to the day!

Thursday, June 05, 2014 at 5:46:16 PM
5
BigDream 1,442 rep

I remember that day when I was working on a game and needed a way to show cutscenes! :) I then contacted Scirra and asked if they had it in plans and they said that it was in their To-Do list. Now it's done :) Good job on keeping promises, guys! Keep it up and good luck to you with your future plans!

Thursday, June 05, 2014 at 5:53:34 PM
5
Softloulou 2,075 rep

Video plugin !!! Great, thanks

Thursday, June 05, 2014 at 6:09:15 PM
5
Michaelb 2,663 rep

Just what i needed LOL , you guys read minds also?????

Thursday, June 05, 2014 at 6:18:24 PM
5
granpa 16.5k rep

Thank you for the image offset fix .

Thursday, June 05, 2014 at 6:22:15 PM
5
Doo89 7,089 rep

Excellent.

Thursday, June 05, 2014 at 6:32:17 PM
5
eli0s 10.4k rep

Oh Ashley ... Thank you so much!!! !D

Thursday, June 05, 2014 at 6:33:28 PM

Leave a comment

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