Legging in mobile [Resolved]

Discussion and feedback on Construct 2

Post » Tue Nov 25, 2014 3:49 am

I am using 8 direction plugin and touch plugin to control sprite, on touch direction it simulates to left or right, working fine in desktop.

Have used Intel XDK to build apk. Apk size is 5+ mb, Running apk in mobile/pad but animation is not smooth, I have 2-3 background images, sound and falling sprites on some interval.

Web version is uploaded here.

http://games.trywall.com/santa

Image
Last edited by socialpilgrim on Sat Nov 29, 2014 3:57 pm, edited 1 time in total.
Image
B
52
S
12
G
2
Posts: 256
Reputation: 5,010

Post » Tue Nov 25, 2014 4:23 pm

Hi @socialpilgrim what optimisation steps have you taken?
Image
B
9
S
3
G
1
Posts: 346
Reputation: 1,560

Post » Wed Nov 26, 2014 1:55 am

App size of 5+ MB, may I ask if it is inferior to 20MB? If so, that could mean you did not used crosswalk, which implies bad performances on android versions up to 5, due to the poor webview of those.

Can you try the web version you posted in either chrome or firefox for android?

@hundredfold I would guess from his event sheet (if it is the only one), that there is no optimisation to do on his code, as the majority of the performances problem would be elsewhere (if you have performances issues with so little things happenning, unless you are using physics, you can bet the interpretor is most likely unable to do the job, and there does not seems to be an obvious performance swallowing event, then the apk size tells me that crosswalk was not the one being used).
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Wed Nov 26, 2014 2:39 am

@Aphrodite I have removed all the other plugins except device in XDK and then generated apk, Yes this is the made code which controls the major logic, rest is ok ok.

In chrome browser this is working fine in my samsung tab.

@hundredfold
As a optimization I am already using reduced image size, not using every tick, sound also placed in right folders, only thing is falling object is does have physics.
Image
B
52
S
12
G
2
Posts: 256
Reputation: 5,010

Post » Wed Nov 26, 2014 4:51 am

@socialpilgrim what @Aphrodite was saying is yes your using the xdk, but you're using the old android export(in xdk) and not the New Crosswalk export which will run faster. We know this because of the apk size. So try using the better Crosswalk option in the xdk then tell us how your performance is.
B
42
S
17
G
2
Posts: 850
Reputation: 6,209

Post » Thu Nov 27, 2014 8:46 am

@volkiller730 @Aphrodite , I understood, I tried the same now, but now I can see sound is not working until I tap the screen, only music and tap sound is playing but with delay, I tried the approach of putting the sound in sound folder and music in music folder, even I tried preloading also, animation is still same like earlier.

This is happening when I previewing and generating apk build on my S4 and Smasung TAB.
Image
B
52
S
12
G
2
Posts: 256
Reputation: 5,010

Post » Sat Nov 29, 2014 3:56 pm

Thanks everyone, now it is exported properly and I have uploaded in Google play as well.
Image
B
52
S
12
G
2
Posts: 256
Reputation: 5,010


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 19 guests