Current Status/Practical Uses of Construct2

Discussion and feedback on Construct 2

Post » Sat May 20, 2017 6:39 pm

Colludium wrote:Wrapped JavsScript will always suffer from lower performance -if- the wrapper tries to be a full browser instead of it being a performance optimised game engine. GPU bottleneck might be the cause in some cases, but in my experience a wrapped c2 game will always perform worse than one that was made in another game engine. There are no magic answers - all users of even the top game engines have to consider hardware limitations. It's just that c2 adds a layer of complexity (the browser) that is not optimised for games. Of course, here's the data - try out a simple bunnymark test:

c2 capx
godot engine bunnymark

get godot here

I tested on a desktop (i5 16Gb HD4000, NWjs for c2 export) and mobile (Nexus 5X, Phonegap for c2 export); when the FPS dropped to below 55 I considered the test complete. Results:

Godot desktop: 2200 bunnies
Godot android: 750 bunnies
c2 desktop: 1450 bunnies
c2 android: 420 bunnies

Thanks for providing something useful in here. Did Ashley already take a look at this one @Colludium?

Here are my results:
Godot desktop: ~2435 bunnies
Godot android: -
C2 desktop: ~1500 bunnies
C2 android: -

Desktop: AMD FX series 3.6ghz, nvidia GTX 670 (4gb vram), latest NW.js release
ImageImageImage
B
63
S
23
G
78
Posts: 661
Reputation: 44,935

Post » Sat May 20, 2017 6:54 pm

Colludium wrote:Ads and IAPs are beyond me for c2 (and Godot...!). I only learned how to program (I am still an amateur!) by making plugins for c2 - all of the concepts are translatable to other engines, and I only chose Godot over Unity because it's way easier to learn because the interface is simpler.

I can only recommend you do a forum search for cocoon.io advice - it's almost the same as phonegap (zip up your export and import it into cocoon) but it's been a good while since I experimented there. If your games don't require moving action scenes then phonegap will suffice for mobile for sure.

A cross platform alternative for NWjs can only be Electron (which I have never used and it looks complicated for a non-coder) - so you might be better off waiting for a stable NWjs branch (or use different versions for different platforms?).

Ahh bummer :( If I could just time travel and pay that money on native programing... After so many years - even a dumb monkey like me would be able to get the job done. About cocoon - I heard its kind "unsupported" with new C2. MEaning I would have to revert back to some old builds for it to work. and something more but I've forgoten what... @shinkan ? Can you correct me here?

cjbruce wrote:@irbis,
I'm sorry to hear about the rough time you are having. I do HTML5 work pretty much exclusively now, and the last time I packaged stuff up was with Cocoon.js two years ago. I have two possible suggestions:
1. Have you tried creating a blank xcode project, dropping in a WKWebView or UIWebView, then loading the game as a resource in the webview? WKWebView should give you close to the same performance as iOS Safari.
2. If you can wait for Scirra, they have promised to get the mobile Build Service working for C2 projects as well. I'm looking forward to trying this with my most recent creation.


Thx for the kind words buddy (one of the first in this thread :( ).
As of point 1 - sadly I have no idea what those things are. You mean via Intel XDK?
point 2 - if Scirra could estimate the time then maybe yeah. But their "We're working on it!" means anything between a month and a year. And when I maybe (just MAYBE) would be able to stretch the line for one month - I cannot do this for a whole year. And there's also no promises from their side that it'll be working as intended.
As I've said - PhoneGap sounds very nice and project loading is literally instant (when compared to Intel XDK at least) but I have no idea how to setup the settings to fit my game, beside the defaults. Would you be an user of PhoneGap by any chance?
B
28
S
8
G
7
Posts: 643
Reputation: 6,457

Post » Sat May 20, 2017 7:18 pm

irbis wrote:
Thx for the kind words buddy (one of the first in this thread :( ).
As of point 1 - sadly I have no idea what those things are. You mean via Intel XDK?
point 2 - if Scirra could estimate the time then maybe yeah. But their "We're working on it!" means anything between a month and a year. And when I maybe (just MAYBE) would be able to stretch the line for one month - I cannot do this for a whole year. And there's also no promises from their side that it'll be working as intended.
As I've said - PhoneGap sounds very nice and project loading is literally instant (when compared to Intel XDK at least) but I have no idea how to setup the settings to fit my game, beside the defaults. Would you be an user of PhoneGap by any chance?


I haven't used phonegap myself. A few years back it was pretty primitive and ran without webGL, but with the advent of the WKWebView for iOS, it is now hardware-accelerated and a great option. I would definitely give it and Cocoon a shot. Back in the day, Cocoon worked much better than XDK for me.

I was a native iOS programmer before switching to C2. xcode is the tool you would use if you wanted to do things natively on iOS/mac os. It is incredibly powerful, but not very user-friendly. I like C2 because I can get everything done in much less time.
www.simbucket.com - HTML5 Science Simulations / https://www.airconsole.com/#!play=com.n ... obotrumble - Robot Rumble on AirConsole
B
48
S
14
G
24
Posts: 409
Reputation: 16,666

Post » Sat May 20, 2017 7:44 pm

cjbruce wrote:
irbis wrote:
Thx for the kind words buddy (one of the first in this thread :( ).
As of point 1 - sadly I have no idea what those things are. You mean via Intel XDK?
point 2 - if Scirra could estimate the time then maybe yeah. But their "We're working on it!" means anything between a month and a year. And when I maybe (just MAYBE) would be able to stretch the line for one month - I cannot do this for a whole year. And there's also no promises from their side that it'll be working as intended.
As I've said - PhoneGap sounds very nice and project loading is literally instant (when compared to Intel XDK at least) but I have no idea how to setup the settings to fit my game, beside the defaults. Would you be an user of PhoneGap by any chance?


I haven't used phonegap myself. A few years back it was pretty primitive and ran without webGL, but with the advent of the WKWebView for iOS, it is now hardware-accelerated and a great option. I would definitely give it and Cocoon a shot. Back in the day, Cocoon worked much better than XDK for me.

I was a native iOS programmer before switching to C2. xcode is the tool you would use if you wanted to do things natively on iOS/mac os. It is incredibly powerful, but not very user-friendly. I like C2 because I can get everything done in much less time.

Well I've heard @xmnboy saying that current PhoneGap runs on the same steam as XDK used to. The problem is interface and lack of documentation for non-programmers. For the love of god - I can't figure it out :(

For desktops - I have to check that thing @Colludium mentioned - Electron. Nw.js is just too unreliable
B
28
S
8
G
7
Posts: 643
Reputation: 6,457

Post » Sat May 20, 2017 7:54 pm

irbis wrote:For desktops - I have to check that thing @Colludium mentioned - Electron. Nw.js is just too unreliable

Might want to check out Armaldio's recent work with bringing Electron support into C2: https://c2electron.github.io/guide/
Don't ask me for specifics though (I tested it when it came out about a year ago), feel free to tag him or ask him questions in our Discord.
ImageImageImage
B
63
S
23
G
78
Posts: 661
Reputation: 44,935

Post » Sat May 20, 2017 8:02 pm

Have you looked at Phonegap Build service?

https://build.phonegap.com

It is paid, but should be pretty painless to use.
www.simbucket.com - HTML5 Science Simulations / https://www.airconsole.com/#!play=com.n ... obotrumble - Robot Rumble on AirConsole
B
48
S
14
G
24
Posts: 409
Reputation: 16,666

Post » Sat May 20, 2017 8:14 pm

cjbruce wrote:Have you looked at Phonegap Build service?

https://build.phonegap.com

It is paid, but should be pretty painless to use.

Oh that's the thing. I tried it yesterday. And at first - it was a blessing!
First you just export your game and pack it all into a zip with 0% compression. Upload up to PhoneGap, wait 30sec and V'la! It'll give you an apk right away! :D Like a charm! Which is a god send if you ever used Intel XDK. The problem popped up later... I tried renaming my APK. Upon upload it reverted back to default one and I couldn't setup any plugins or permisions (as you would with XDK).
There is a tab "Plugins" but it just tells you that you have none (lol) and there's no UI to add new. Also, upon building an APK - you cannot change the description/name. You have to delete it and build again. But it gives you that defaults >.<
Sadly - googling for past 24h left me with no answears of how to configurate the whole thing. All I could find is that I have to change some bits of the APK manualy to fit my needs. The problem - if I would be smart enough to do this sort of things - I don't think I would need to use C2 at all lol.

So I am hoping for some miracle maker guy who would aid me on it =(

I wish XDK and PhoneGap would hook up and have a baby lol.
XDK customization power + PhoneGap user-friendliness = Win
B
28
S
8
G
7
Posts: 643
Reputation: 6,457

Post » Sat May 20, 2017 8:27 pm

@irbis no idea bro.
I used cocoon.io once or twice before they came up with their idiotic payment plan... But it was shit, well for me anyways. Long hours of waiting for their system to build my app (imagine like 2-7 hours between uploading a zip file and downloading apk file), and even then stuff never worked properly. I've always had better results and literally no problems with XDK, all plugins always worked, maximum waiting time was less than 5 minutes - for me it was actually lot faster to upload each new game test version to XDK than using dumb "Preview on LAN" which never show true game stats on mobiles... Anyways. XDK is no more from what I heard/read so all you have now is manual process of converting html5 to apk or use Phonegap. Don't know if they are other means and even don't care anymore. Like I wrote in some other post , They abandoned C2 just like they abandoned CC. difference was that we actually paid for stuff in C2 that never came, and from what i can see C3 is no different, so good luck with your stuff mate!
ImageImageImageImage
B
157
S
66
G
42
Posts: 2,603
Reputation: 35,343

Post » Sat May 20, 2017 8:34 pm

I wouldn't call all those years with Construct wasted just yet. Construct was started as a free open source clone of Clickteam products and their newest one in development looks like its returning the favour (minus the HTML5-only export).

Might be a very viable alternative for you.
"Construct 4 lets YOU make advanced games! (but not play them)" Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
121
S
42
G
17
Posts: 2,219
Reputation: 19,800

Post » Sat May 20, 2017 9:00 pm

Ah. I get it. The last time I packaged for mobile I used XDK for Android because it seemed to work more consistently. For iOS I used Cocoon.

Maybe the best thing to do is to create a separate thread (or three) under the "How do I" section. I would try to tackle the three export problems (iOS, android, and Windows desktop) specifically.

The nuclear option is to create your own web app wrapper with a webview using an Android IDE like Netbeans and the iOS IDE (xcode). Both of these are doable within a month, but it will be a lot of late nights, and you might be better off convincing a programmer friend to do it for you. I believe this is what @ashley ended up doing a few years back with iOS. However, I think you could probably get where you need to go with one of the prebuilt solutions. If not PhoneGap Build, then raw Cordova.
www.simbucket.com - HTML5 Science Simulations / https://www.airconsole.com/#!play=com.n ... obotrumble - Robot Rumble on AirConsole
B
48
S
14
G
24
Posts: 409
Reputation: 16,666

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: mihirolover and 11 guests