[Guide] Making Mobile Games Using Construct 2

Discussion and feedback on Construct 2

Post » Sat Sep 10, 2011 2:24 am


I wrote an short article on my blog regarding how to create mobile games using a combination of Construct 2 and a HTML5-to-native-mobile-app software called PhoneGap. The guide can be found at this link. Note: This is specifically written for Android phones, but PhoneGap also supports iPhone and Blackberry platforms.

Hope this helps somebody who is toying with the idea of making mobile games using Construct 2. Let me know if you run into any problems with the guide.
B
2
G
1
Posts: 3
Reputation: 456

Post » Sat Sep 10, 2011 2:45 am

From step 8 I'd say you are using an old release of C2.
R54 exports a jquery file by default in the exported folder, and the content of index.html isn't accurate.

Now the runtime is launched through :
[code]<script src="c2runtime.js"></script>

    <script>
        // Start the Construct 2 project running on window load.
        jQuery(document).ready(function ()
        {
            // Create new runtime using the c2canvas
              cr.createRuntime("c2canvas");
        });
    </script>
[/code]

If people copy/paste from your code, they might end up with an error or a slower runtime. (to be confirmed)

As I don't have a phone, I can't test the rest of the tut, but it seems pretty straight forward and simple to put to use.
Maybe you should write a tutorial about it. This way you can be sure your tutorial will be viewed and used, and not getting swallowed by the quantity of daily topics/posts.Kyatric2011-09-10 02:46:10
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Sat Sep 10, 2011 5:40 am

Thanks a lot Kyatric! I updated the guide to reflect the changes to the new version of Construct 2. :)
B
2
G
1
Posts: 3
Reputation: 456

Post » Sat Sep 10, 2011 2:55 pm

Seconding a call for porting it to this site. I think a lot of users would find this really useful, so it deserves to be on the site where a lot of people will find it!
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Sat Sep 10, 2011 5:35 pm

this guide is genius! I'm going to try it out on my Android. :-)
B
8
S
3
G
7
Posts: 835
Reputation: 5,313

Post » Tue Sep 13, 2011 4:51 am

Awesome tutorial barefists! Just what I was looking for. I don't have an Android phone but after following your tutorial I tested my game on my Android Emulator, and it works great! Games run a little slower on an emulator but almost unnoticeable to the gamer. Just a request but would you consider writing another tutorial on how to upload, and sell our games on the Android marketplace?
B
50
S
11
G
8
Posts: 479
Reputation: 9,911

Post » Tue Sep 13, 2011 1:18 pm

I've looked in to it and Android 3.0+ has hardware accelerated canvas. Not sure when that's coming to phone handsets (it seems to be tablet only right now), but I'm sure it will soon!
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Wed Sep 14, 2011 3:33 pm

Has anyone gotten sound working correctly via this method on Android?
B
15
S
1
G
3
Posts: 47
Reputation: 1,912

Post » Tue Sep 20, 2011 3:04 pm

Could someone please translate that to Symbian? can't get my head around that Cygwin thing :(
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Sat Sep 24, 2011 1:10 am

Damn, I just wrote a big post explaining my tests on the iPhone, but I timedout and lost it

Short version:
Performance isn't good on an iPhone 4.
I had an animated sprite rotating 1 degree every tick. With each tap, I added one of these.

By the 15th sprite, the FPS started dropping. With 30 sprites, it ran about 10 FPS.

For action games it's unnaceptable, but for simple, turn/text games it should be fine. gammabeam2011-09-24 01:12:42
B
107
S
40
G
10
Posts: 456
Reputation: 13,202

Next

Return to Construct 2 General

Who is online

Users browsing this forum: Eisenhans, Mirlas and 9 guests