Don't Miss Out

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


Lightning Draw

Tsengar

1m 1s

Guest

1m 7s

dodo021

1m 16s

For the first 3 people to download this release!

Quick Draw

AVIX

2m 33s

laserbeam

2m 49s

plut

2m 51s

Guest

2m 1s

Tobye

2m 2s

Guest

2m 30s

Guest

2m 30s

Guest

3m 30s

Guest

3m 39s

plut

3m 52s

Guest

5m 9s

Guest

6m 45s

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

Construct 2 Release r154

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

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

Friday, December 13, 2013

New this build: a multiplatform in-app purchases (IAP) plugin! Previously it has been difficult to set up IAP in games, requiring different plugins and events for each platform you want to publish to. This plugin aims to eliminate that work, having a single set of events for a single object that handles IAP on whichever platform you export to. The initial release of this plugin has support for the Windows Store, CocoonJS, Blackberry 10, Amazon Appstore, and Tizen. Other platforms are not yet supported, but we will be looking in to adding support for others in future. And when we do, the same set of events should work for that platform as well, making porting a lot easier.

There's no documentation for this plugin yet but the basic usage is as follows:

  • On start of layout, use the Add product ID action to add the product IDs you will be using, e.g. "product1,product2,product3". (This is necessary since some platforms don't support requesting a list of available product IDs.)
  • After that (still on start of layout), use the Request store listing action. This downloads the names and prices of the given products. (Again, this is necessary since some platforms don't support making purchases until this information has been received.)
  • When On store listing success triggers, the product names and prices are available, and purchases can start being made or checked with Has product.

You can also flip the 'Test mode' property like you can with the Windows 8 object. This enables 'test', 'developer' or 'sandbox' mode on the appropriate store for testing. Don't forget to turn off test mode when publishing!

Note some platforms will have quirks: one that is possible is that some platforms might not update the status of the Has product condition until a few moments later, so try checking it regularly if it's not doing what you expect.

This is a pretty complicated plugin internally, even if it looks simple, because each store works differently with a completely different API. We've done our best to wrap everything in a consistent way so it seems to work the same everywhere, but there may be variations between platforms. It's also a difficult plugin to test since it has to be published all the way to the store to verify that it works. Please let us know if you run in to any issues.

Note the IAP plugin does not appear in the free edition. This is because the free edition is not allowed to be used for commercial purposes.

Changelog

Feature

A new IAP (In-App Purchases) plugin, to handle IAP across platforms. Only available with a license

Change

Intel XDK support: updated script tag references and updated some of the Audio object's support for XDK-specific audio functions

Change

Tizen export: now specifies feature "http://tizen.org/feature/screen.size.all" in config.xml to prevent Tizen store defaulting to only supporting 720x1280

Change

CocoonJS physics now supports 'GetMass()'. Note CocoonJS physics is still missing 'SetAngularDamping' and 'SetBullet'.

Bug Fix

Error in r153 using non-physics behaviors when project set to use asm.js physics

Bug Fix

Tilemap: now works correctly with the Physics behavior, including making use of tile collision polygons. Note if you set any tiles at runtime it has to recreate the entire physics bodies for all the tiles in the tilemap which could be slow, so try to avoid changing tilemaps when they have the Physics behavior.

Bug Fix

Tilemap: TileAt expression would return 536870911 for erased tiles (oops!); now returns -1

Bug Fix

Audio: on Safari for iOS and Chrome for Android, now plays music straight away if started in a user input event (like 'On touch'). Previously the music would have still been queued up to be started in the next touch after that.

Bug Fix

Export project dialog: can now export to network shares for some export options (not all can do this though - some you will still have to export locally first)

Bug Fix

Platform: enabling/disabling the behavior on a moving platform could teleport the player back to the platform

Bug Fix

Audio: could not change music volume in Firefox

Bug Fix

Some issues with the drag and drop behavior in IE11

Bug Fix

Turret behavior: rate of fire did not take in to account the time scale


Comments

10
asmina22 2,403 rep

thanks you're doing great work , the updates are so frequent !

Friday, December 13, 2013 at 6:36:53 PM
8
firebelly 7,264 rep

I think that platform fix will help me! Thanks!

Friday, December 13, 2013 at 6:39:39 PM
7
sggs 3,565 rep

Thank you for simplifying the process.

Friday, December 13, 2013 at 6:45:00 PM
5
Paradox 40.6k rep

I think the excitement over this one crashed the website. ;-)
I managed to get in, but I think I was a guest when I downloaded.

Friday, December 13, 2013 at 6:45:24 PM
5
Dzaky Alkaff 2,153 rep

Nice Work !,
will be waiting for Realtime Multiplayer Online feature. :D

Friday, December 13, 2013 at 6:48:36 PM
6
BluePhaze 14.6k rep

Great Job guys! Here's to having cross platform functionality out of the box! Definitely a good start!

Friday, December 13, 2013 at 6:53:41 PM
8
Bl4ckSh33p 9,420 rep

Thank you very much! Very good fixes and changes. :)
Looking forward to In-App Purchases.

Friday, December 13, 2013 at 6:58:22 PM
6
damainman 7,953 rep

Good work guys! Awesome update!!

Friday, December 13, 2013 at 7:01:07 PM
5
iceangel 32.7k rep

That great news, a new update. Thanks

Friday, December 13, 2013 at 7:01:20 PM
6
ChrisAlgoo 4,004 rep

Just about everything in this update will help my team. Thank you!

Friday, December 13, 2013 at 7:02:11 PM
3
AnD4D 11.0k rep

Amazing! I've been waiting months for GetMass!!!

Thanks Scirra! I feel like this release is especially for me :)

Friday, December 13, 2013 at 7:06:27 PM
4
thehorseman007 14.6k rep

Great , I love In App Purchase, Tizen Export, CocoonJS Physics, and all those bugs and other improvements. Thanks and great guys , Keep up the good work .

This is the best Christmas Present for me in my life.:)

Thanks again C2 Team for you hard work.

Friday, December 13, 2013 at 7:13:18 PM
4
danialgoodwin 2,563 rep

Thank you very much for all your hard work!

Friday, December 13, 2013 at 7:18:32 PM
6
thehen 11.9k rep

This is great! I love the idea of cross-platform IAP. I'm assuming the platform-specific IAP will still be maintained for when we have different monetisation models on different platforms?

Friday, December 13, 2013 at 8:50:19 PM
5
aerirprown 3,645 rep

This is a great addition. Thanks, Scirra.

Friday, December 13, 2013 at 8:58:34 PM

Leave a comment

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