Android Crosswalk Music Start Up Issues

0 favourites
From the Asset Store
Every game developer starts with an idea, and it can come from anything:
  • Hi everyone,

    I just have a new problem occured when building my game with Android Crosswalk. I have been buildind the game I am working on maybe for about 3 months and nothing happened but now when I build the game the music doesn't start up!! OI only have sound effects. And another thing i I changed my phone to Asus Zenfone 2 and it uses X86 structure don't know why. So I install X86. I really hope there is a solution.

    Thank you

  • Move some sound effect file from Sound directory to Music directory, and music file from Music to Sound directory. This should tell you if it's a problem with the music file or way engine treats it on your mobile.

  • Hi! Do I do that inside Construct2?? Btw When I export the project as Cordova it collects all the music and sound effects in one folder called "media"

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Yes you do that in Construct 2, just drag&drop. C2 engine treats music and sound files a bit differently.

  • Hmm ok thank you! Wİll give it a shot! What if the music works if they are in the sound folder instead of music folder? Should I leave it like that?? Also Would that create a problem also with IOS build?

  • Well then it's weird, but at least you know where's the problem and have a workaround. Regarding IOS I am not experienced with this platform so can't say anything. For me it works the normal way, but I haven't tested my game with Asus Zenfone 2.

  • WOW! You just made my day u know!!! It worked. I only moved all the music files from music folder to sound folder and it worked. Thank you so much. Now need to test if this way will work with IOS or not. If not I will remove to back music for IOS only. BEcause it was working with IOS that way when I tested earlier today. By the way there seems to be some performance issues with crosswalk (it wasn't like this before) now my game works quite slow with my Android tablet not the phone. Since Zenfone has like 4 gb of ram it works fine but I am suspicious it will work great in all devices. Does building in Crosswalk ver 14 or 11 or 12 makes a difference?? Thank you once again. I was thinking this all day how to work around.

  • Crosswalk is the "thing" which basically runs your game. It's like a browser for JavaScript. Unfortunately for some reason the newer Crosswalk version you use, the slower your game is. But the newer Crosswalk version you use the more bugs are fixed in it and the more features it handles (at least in theory). In my e-book I encourage to use the newest possible, so it would be weird if I'll say opposite on the forum. However if CW14 is too laggy for you, you may want to consider using older one or if it's laggy only on some older devices you may rise the Android API requirement in Intel XDK which won't let to install your game on older devices at all.

  • Hmm ok Thank you. Yes you are right. My game seems working more properly with CW14. Which Android API version should I leave on? I now use 14 which is default. I also saw some apps on the appstore which I couldn'T install for my previous phone which was Samsung Note2 so that's what they did. But that was annoying. I remember that was the "periscope" app. But if my game seems not working properly with older devices cause my game is heavy. A platform game with many levels when it is finished. It has big levels with lots of sprites floor tiles enemies etc. I did a lot of optimizing like turning on collisiong when they are on the screen and also turning on the platform behaviour of the enemies when they are on screen etc. But still seems working slow with older devices. Even it might get slow down a bit in some parts in my iPad Air but works fine. I will see what I will do. Thank you.

  • Sometimes it's better to forbid installs for older devices, because if you allow users to install laggy game, they won't be happy anyway, and will just leave you with bad ratings. So if someone banned your device - he had a reason.

    A short quote from my e-book which should help you understand the Android API setting.

    [quote:5x8k0myk]Minimum Android API

    You have probably noticed that games in Google Play store have various Android version

    requirements. This is the place where you can set up a minimum Android version a device

    must have to be allowed to install your application. However, you cannot type an Android

    version here, but you must use an Android API version. Each Android version has different

    API version. The complete list of Android API versions you will find [here].

  • Thank you so much for sharing your knowledge and experience and being open! I am also thinking the same way you think not to allow people download a laggy game and create unhappy customers. I will check out the part you shared about API.

    Regards and Happy Gaming

  • I have the same problem since yesterday, music not loading...I moved it to sounds but now loading of game is very long:( I hope they will fix it soon.

  • apofis Hi try to reimport the music you used inside C2 then move to sound folder this worked for me. Also in another forum mahdi71 suggested this.

    ok i found a way !!

    use intel xdk and then you dont have musics but :

    1- download Advanced ApkTool

    2- decompile your apk

    3- recompile your apk

    !!!!!

    i dont know why but it work !

  • I have the same problem since yesterday, music not loading...I moved it to sounds but now loading of game is very long:( I hope they will fix it soon.

    This is because you have "Preload sounds" enabled. This means that all sounds are loaded into RAM memory before the game starts.

  • > I have the same problem since yesterday, music not loading...I moved it to sounds but now loading of game is very long:( I hope they will fix it soon.

    >

    This is because you have "Preload sounds" enabled. This means that all sounds are loaded into RAM memory before the game starts.

    Yeah, but isnt it generaly better to use the Preload sounds? If I set it to disabled, will be game slower?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)