How do I test it in my smartphone

Get help using Construct 2

Post » Sun Dec 07, 2014 11:56 pm

I've made the basic mechanics and tested it in my browser Chrome, but now I need to export it and play in my android in order to test the game. How do I do that?
B
56
S
21
G
3
Posts: 602
Reputation: 6,612

Post » Mon Dec 08, 2014 12:32 am

You can either export it using whatever the current android exporter is (still cocoonjs?) or you can preview it on your phone using your phone's browser.

The latter can be done by, within construct, clicking file -> preferences -> preview; then, on the 'Preview on LAN address:' click the [...] button. A new window should appear, select your local network address and so long as the phone you want to test is on the same network as your pc, you can go to the browser on your phone and connect to the IPv4 address of the computer you're previewing it on with the set port (default 50000) and then you can test!

NB: This requires administrative permissions on the computer you're testing from.
Nothing goes unanswered!
B
24
S
5
G
1
Posts: 434
Reputation: 3,446

Post » Tue Dec 09, 2014 1:14 am

briggybros wrote:You can either export it using whatever the current android exporter is (still cocoonjs?) or you can preview it on your phone using your phone's browser.

The latter can be done by, within construct, clicking file -> preferences -> preview; then, on the 'Preview on LAN address:' click the [...] button. A new window should appear, select your local network address and so long as the phone you want to test is on the same network as your pc, you can go to the browser on your phone and connect to the IPv4 address of the computer you're previewing it on with the set port (default 50000) and then you can test!

NB: This requires administrative permissions on the computer you're testing from.


That's what I got by exporting to Android.
Image

Edit: is it still up-to-date?
https://www.scirra.com/tutorials/809/ho ... -crosswalk

Edit2: I'm testing it right now and it's pretty cool! =P...I didn't try to export though. I think I'll learn about it later.
B
56
S
21
G
3
Posts: 602
Reputation: 6,612

Post » Wed Dec 10, 2014 10:00 pm

@kossglobal For it to work as an app on android you need to compile it into an apk file and sign it. I'm not familiar with the newer methods of doing this with C2, last time I did it CocoonJS (Which now appears to be completely removed :( ) was the preferred option. The new C2 exporter for Android is crosswalk, so I would assume that tutorial is up to date.

NB: Crosswalk works for Android ICS(4.x.x) and upwards, you may still need to use phonegap to export to lower versions if needed.
Nothing goes unanswered!
B
24
S
5
G
1
Posts: 434
Reputation: 3,446

Post » Thu Dec 11, 2014 4:13 pm

briggybros wrote:@kossglobal For it to work as an app on android you need to compile it into an apk file and sign it. I'm not familiar with the newer methods of doing this with C2, last time I did it CocoonJS (Which now appears to be completely removed :( ) was the preferred option. The new C2 exporter for Android is crosswalk, so I would assume that tutorial is up to date.

NB: Crosswalk works for Android ICS(4.x.x) and upwards, you may still need to use phonegap to export to lower versions if needed.


I'll look at it later. Actually, in the Android options, you don't have any other choice to export.
Well, I hope all the tutorials about it is up-to-date. Thx.
B
56
S
21
G
3
Posts: 602
Reputation: 6,612

Post » Sat Dec 13, 2014 12:24 am

@kossglobal There is a different export method called phonegap which provides compatibility for a wider range of devices, but I'm pretty sure it's got its downsides :P
Nothing goes unanswered!
B
24
S
5
G
1
Posts: 434
Reputation: 3,446


Return to How do I....?

Who is online

Users browsing this forum: GrogIsGood, kainrazial and 3 guests