In this post, I will not directly go to the algorithm. First thing I want to do is make the same definition and perception of algorithm. So, algorithm is the way of thought step by step procedure to solve a problem. Using Construct 2, you will solve “the problem” with just single click.
In order to make your project easy to read and understand by the creator (you), I suggest you to create the framework first by creating groups for each layout.

I have 5 different groups here for “inGame” layout. Player, enemy, power-up, score, and background divide by their role in this layout. Its better to rename the event sheet with the same name of your layout. Try to think about you application elements for each layouts.
Now, to create a group for each layouts. Choose the proper “Event Sheet” of your layout. Right click on empty space and choose “Add Group”, give it a name based on their role. Keep thick “Active on start” option, to make this group always active.
After making some groups for your layout make sure you have event number 58 and 59 from picture above (required for in-game condition and another time-based action). This setting will make your application state “Paused” when you snap the application. If you create the project using template that I have had mentioned before, this setting should have been there.
If not, add a new event, click “Add event” text on your “Event sheet” window. Choose “Windows8” object type > “Compare view state” > “snapped”.
After that, create the action by click “Add action” text in line with current event. There are some action need to set on this action.

1. “System” > “Set layer visible” > (choose which layer will be active when snapped, create a new one if you are not have it) > (set visibility to “Visible”) > Done.
2. “System” > “Set time scale” > (input “0”) > Done.
Settings for snapped view is done, now we will turn it back when user back to the application. Step is same as before when you create snapped view feature.
1. Add an event from system “Else”.
2. Add an action from system, “Set layer visible”, turn paused layer to invisible.
3. Set time scale of your layout to “1”.

*Picture of event window for “System” configuration
Now, you have known how to add an “Event” and “Action” indirectly when you make snapped view settings for the application. The last thing that you have to know for basic is how to create “Global Variable” and “Comments”.
Do not use Global Variable too often, only use if you need it for global usage. Right click and choose “Add global variable” to use it. Same way with “Comments”, this action will appear with yellow background. It will not affect your application, just for a little note. After you have known the basic, now we can continue to the real thing. Follow links below to go to certain function you might be interested.
1. Player Control (Touch Device)
2. Scoreboard
3. Player Bar Indicator (Health Bar)
After finish with your project, now it’s time to upload it to store. See the REQUIREMENT to upload an application to Windows Store.











