mpatekar's Forum Posts

  • Hi

    I had a similar problem.

    Follow this thread. Maybe it will help you :

    Cheers

  • Hello,

    I came upon a great .capx example from AllanR for angry birds type game.

    I am stuck at this : I want to stop predictive aim on collision with obstacle.

    So :

    1) when the dots are not overlapping the obstacle , they are shown from start to finish (like in the capx)

    2) when the dots overlap the obstacle , they are visible only from start( eg from sling shot) to that obstacle (not beyond obstacle)

    the capx can be found here :

    https://www.dropbox.com/s/x4vqxj6fx7136 ... .capx?dl=0

    Any help would be appreciated.

  • Ok,

    here is what I did :

    Before I start, I assume You are using the latest stable version of C2 and Intel XDK.

    1) put all the sound and music files in sounds folder (I know thats not pretty:decompressed music file in memory - high memory usage,..., but it worked for me )

    2) When exporting from Construct 2 , export with cordova, DO NOT minify script and check all three boxes : hide status bar, use wkwebview and use new intel xdk format

    3) in Intel XDK , in lower left corner choose "open intel xdk project". Now all the required plugins will be automatically imported. Add icons, splashscreend, add certificate and provisioning profile.

    4) test on REAL device. (note that you must use ad hoc provisioning profile to test on your device, othervise your game will not be installed). Use production provisioning profile only when uploading to AppStore.

    Hope this helps

    Best Regards,

    Matija

  • Note when testing : if you test your game on your test device, you must use Ad Hoc provisioning profile and set up info for your test device in app developer center, or you will not be able to install your game. Store provisioning profile is for app store submission.

    Cheers,

    Matija

  • Look at this thread. Maybe it will help.

    I am facing this issue also, but i never test ios version of my games on emulator. If android version works on emulator, so will ios. You should test on a real device. (If you have ads implemented, they will not show in emulator, they will show only on real device.

    Cheers!

  • Ashley

    Problem can be reproduced on iphone 6s (iOS 9.3) . Newest stable version of C2 and XDK to date.

    Edit : The problem seems to go away when i put music files to sounds folder in C2. I know that the solution is not pretty (high memory consumption, especially if you have more music tracks) but that seems to be the only way.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey!

    We released our new game that was in development for some time now.

    Find the way is a puzzle board game with moving obstacles.

    I uploaded only intro video here to get the general idea. You can find the full descrption in the link below.

    Android version is released today.

    You can check it out here (Free download ) : http://bit.ly/2c0g2E6

    iOS version is in development and is coming soon

    Enjoy,

    Matija

  • mpatekar if you want publish the game for Android, you need put all audio in "Music" folder.

    You were right. In my last game, when i exported for Android with cordova + compiled in XDK (newest versions up to date) , with the sounds in their folder I encountered 2 issues :

    1) the sound lagged noticably

    2) when the game was running and then when the screen turned off (the phone went in standby) and after the screen turns back on, the music played fine but there was no sound in the game.

    Then I took your advice and put all the sounds in Music folder, and everything worked fine. Thank you very much!

    The only thing I added was preload the most used sounds like this: on the start of first layout, i used : Audio - preload sound -xxx (for every sound)

    Again, thank you very much!

    I would really like for Scirra team to fix lag issue and " no sound after wake up from standby"

    When I get the time I will report the bug.

  • Thank You very much!

    I will post the link to the game once its finished. It will be very soon.

    The game will be free.

    I will use Xdk., I tested it , and it gives good constant framerate. It has much improved with the latest versions.

  • Hi!

    We are working on a puzzle board game called Find the way . It will be available for free for mobile devices. After all the hard work, release date is close so we wanted to give you guys a short demo video.

    The game is made entirely in Construct2

    Please comment and share.

    You can see the video here :

    https://m.youtube.com/watch?v=UIproT82O1U

  • Hmm...I had no problems in Android (Cordova) export when I put Audio files in Audio folder and music files in music folder.

    Everything in audio folder is loaded into memory, and everything in music folder is streamed.

    https://www.scirra.com/manual/52/import-audio

    Best regards,

    mpatekar

  • Hello again,

    I have found the solution.

    I have attached .capx

    I went the other way. I used two global variables. On for sound and one for music.

    Basic logic is :

    if global variable "audio"=0 then audio is on. if global variable "audio"=1 then audio is off.

    Before the sound is played we need to check if the global variable = 0 (unmuted)

    if global variable "music"=0 then music is on. if global variable "music"=1 then music is off

    Before the music is played we need to check if the global variable = 0 (unmuted)

    See atached .capx : https://www.dropbox.com/s/vp9jrnn3wmqjg ... .capx?dl=0

    I hope this will help you guys.

    Best regards,

    mpatekar

  • You can go another way : offer in app purchases in a way that, for instance,first 5 levels are free, and you have to buy the rest through IAP

  • Hello,

    i have a problem. I cant mute/unmute audio and music separately.

    I have attached .capx

    I made two buttons. One for music and one for audio.

    I have tried with functions : On button audio clicked ---> call function "mute audio" and vice versa

    In function "mute audio" i have put "mute sound" on all the sounds

    ________________________________________________________________________________

    I did the same for music, but music and audio is not muted

    Any help would be appreciated.

    https://www.dropbox.com/s/wsiqjvkj3a8bg ... .capx?dl=0

    Thank You

  • Thank You!