Metro / Windows 8 plugin for Construct 2

Favourite 32 favourites
Tutorial written by iunknOriginally published on 17th, July 2012 - 20 revisions

I have written a plugin - Metro which provides you the ability to integrate better with Windows 8 capabilities when you export your Construct 2 project for Windows 8. This is a tutorial/intro to the plugin.

I submitted a game Blast the bricks to the Windows Store which uses this plugin and make sure to add your creation to this thread in the forum!

Please take a look at an introductory post, the user manual and a few screenshots of event sheet and a sample Metro game in this website. To illustrate the plugin's usage, I have taken the Ghost Shooter (tutorial version) and converted it into a Windows 8 Metro game sample.


Please download the plugin and the Metro Ghost Shooter and let me know what you think and what more features would be useful. I also have the reference manual published in the same website.You might want to refer to How to make a Windows 8 Metro app tutorial from Ashley to refresh yourself.

Known issues: You have to disable Mimifier when you export if you are using this plugin.

P.S: I was working on a game independently, ended up writing this plugin and thought this would be useful for some of you.

Update 1 (07/27/2012): Supporting Live tiles

The Metro plugin is updated to support Live tile notification. Now a Construct 2 game can send out a notification with ease. Please refer this page for usage and other details.

Update 2 (08/10/2012): Supporting app local data

The Metro plugin is updated to support storing and retrieving Windows 8 application local data. I have modeled the action/condition/expressions exactly the same as WebStorage plugin. So if you know WebStorage, you already know how to use the new features! See Storing App Local data in Windows 8 from Construct 2 for detailed instructions on usage and interfaces exposed.

Update 3 (08/31/2012): Supporting app roaming data

Now you can store roaming data of your games using the plugin. This means that if your user is logged in with Microsoft account and plays your game on a tablet and the Construct 2 game saves highscore/level unlock etc,. using the new plugin interfaces, then when the user logs in to their laptop/desktop, the stored data is automatically synced. Implying level unlock, high score info is available across all the machines for the user! No heavy-lifting is needed from developer's side except to use the new plugin commands which are same as WebStorage plugin. Please refer Storing App Roaming Data for details.

Update 4 (09/06/2012): Support for resetting app data

Occasionally users want to delete the stored local and roaming data (see previous 2 updates) and start the game fresh. The plugin is updated to provide the UI for this case - The Settings Preferences pane is updated with a Reset option.


Please refer Resetting game data for more details.

Update 5 (09/07/2012): Support for In App Purchase

[The plugin now needs Windows RTM]
When you want to do a freemium game, you want to lock down certain levels or features. The plugin is now updated for this scenario. You will be able to provide the option for Purchasing a feature in your game and the plugin provides a way to test it as well so as to make sure the experience is good for user.
Please refer In App Purchase for documentation and more details.

Comments

-1
ludodesign 30.6k rep

Sounds really interesting... in future I hope test it.

Monday, July 23, 2012 at 10:53:35 PM
0
Fredrik 2,152 rep

Sounds great! The current scirra implementation leaves a bit to be desired.

Wednesday, August 15, 2012 at 9:55:33 PM
0
theames 3,028 rep

Any plans for achievements? I think win8 has its own achievements system integrated with Xbox live? I'm not 100%

Thursday, September 20, 2012 at 9:05:54 PM
0
iunkn 5,081 rep

Comment by theames

Any plans for achievements? I think win8 has its own achievements system integrated with Xbox live? I'm not 100%
Afaik, the Xbox live/achievements are not available for all developers. Microsoft needs to provide special access if you need to be an Xbox live game.

Friday, September 21, 2012 at 5:42:18 PM
0
theames 3,028 rep

getting an error about not finding the path when trying to retrieve a roaming data key, any ideas? Sorry not at the win 8 machine now to get the full error

Tuesday, September 25, 2012 at 2:55:03 PM
1
EyeHawk 7,762 rep

Nice work thanks iunkn!

Thursday, September 27, 2012 at 12:52:59 AM
0
iunkn 5,081 rep

Comment by theames

getting an error about not finding the path when trying to retrieve a roaming data key, any ideas? Sorry not at the win 8 machine now to get the full error
Could you elaborate a little on what/where the errors occur? Ie do you get error in VS 2012 when you run the exported game? Or?

Thursday, September 27, 2012 at 6:46:38 AM
1
gonzdevour 13.4k rep

You are an angel! If I were you, I'd sell the plugin and documents for $199.

The monetisation of HTML5 App is the most annoying difficulty for publishers, thanks your work very very much. Finally it became possible with your plugin!

The MSDN guideline is annoying too, thank you for making the best solution.

Friday, September 28, 2012 at 2:39:05 PM
2
iunkn 5,081 rep

Comment by gonzdevour

You are an angel! If I were you, I'd sell the plugin and documents for $199.
The monetisation of HTML5 App is the most annoying difficulty for publishers, thanks your work very very much. Finally it became possible with your plugin!

The MSDN guideline is annoying too, thank you for making the best solution.
@gonzdevour: I recommend you to check out my latest tutorial on monetization strategies for Windows 8. http://www.scirra.com/tutorials/388/how-to-make-money-with-windows-8

Tuesday, October 02, 2012 at 5:40:58 AM
0
lambomann007 3,146 rep

Any plans to add support for the Share Charm? That would be pretty awesome :D

Friday, October 12, 2012 at 12:41:36 AM
1
jwjb 4,919 rep

@iunkn, totally awesome and love the look and feel which is really professional too, thanks so much!

Wednesday, October 31, 2012 at 3:59:50 AM
0
michael 7,283 rep

Hi, first of all thanks for the work you have done - looks professional, and fits the Windows8 App look and feel perfectly.

But getting a plugin error trying to run the demo GhostShooter.

Is this compatible with latest release of Construct 2?
PS. Using the release version of Window8 Pro.

Wednesday, December 26, 2012 at 9:06:14 PM
0
khaerul 2,141 rep

So am I, I have try the latest of construct 2 (r-132) that include windows 8 object. But I still beginner and need some events to be done on my game.
Should I use the metro plugin or none?
After I installed it, I got problem on debugging on my Visual studio 2013 that refer to the jQuerry of fullscreen.
Anyone can help me choose to use the plugin for metro.

Best regard

Thursday, June 13, 2013 at 7:23:04 AM
0
khaerul 2,141 rep

And the eror like this one :

Message says:
Uncaught ReferenceError: Window is not defined
[Hyperlink removed - users with less than 500 rep cannot post links] line 80 (col undefined)

This is either a bug in Construct 2 or a problem with a third party plugin or behaviour….

End Message..

Thursday, June 13, 2013 at 7:55:35 AM
0
danialgoodwin 2,563 rep

Great job! Thank you very much!

Friday, December 13, 2013 at 3:39:30 AM

Leave a comment

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