JLH1964's Recent Forum Activity

  • Hello all,

    Im trying to play a random sound from a collection of three sounds. I have the sound labels/files:

    sound1

    sound2

    sound3

    Then on a button click I have:

    choose("sound1", "sound2", "sound3")

    The problem is that the sound1 seems to play first time and everytime and also seems to play while the other sounds are playing. I think I have to 'stop' sound1 (or whatever sound is randomly picked) before sound2 or sound3 is played on the next click?

    Do I have this right? If so, why is this not 'random' and why do two files play at the same time?

    Thanks so much.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • btw. You asked for a wiki? I'm working on something like that. If you are interested and want to contribute some content, feel free to contact me via PM.

    http://shatter-box.com/wiki/

    Thanks. I certainly will.

  • Have you added the sound plugins on Intel XDK to your game? Otherwise it will not work.

    THANKS!!!! i assume that just an option on the plug-in page? We need an Android dev Wiki

    UPDATE: THANKS - i added the Audio / media plugin and sounds now work

  • Anyone....?

  • Hello all,

    I've created two apps now that have minimum sound in them (small beeps etc). Everything works great in the emulator/browser. I can export as Android and build an APK using Intel XDK BUT any sound does not play on an Android device.

    Any ideas?

    Thanks so much.

  • Thanks Ashley

  • In case you missed the release notes updates, you need to:

    - have an admob.com account set up

    - have the right Android ad unit IDs set in the plugin properties

    - add the cordova plugin to the XDK using *except* the latest betas change which plugin to use. The correct details are now:

    Name: Admob Ads

    Plugin ID: com.cranberrygame.phonegap.plugin.ad.admob

    [x] Plugin is located in the Apache Cordova Plugins Registry

    I was using the info linked from the AdMob setting in C2. I see your info is different. Thanks!

    Also, why is there a 'test' field in the AdMob plugin? Can I somehow test ads in C2 before going to XDK?

    Thanks so much.

  • Looks like the new bêta (r182) still has the problem. I downloaded r182 but still no joy.

  • Thanks Apox - the C2 search is handy. I'm amazed by the list of C2 very good looking games and the abysmal downloads they have on Google Play. The apps I have written in eclipse (Java) are poor quality compared to the C2 list of games. However, because of the subject matter I chose, I average over 2000 downloads per week over approx. 8 apps.

    szymek - you are correct. Ive spent months writing an app in eclipse that generates pennies a week and my top app ($15 per day) I wrote in an hour using eclipse. The latter is the only one out there and so generates hundreds of downloads a day (see above).

    it will be interesting to see what happens if I use the ease of C2 to improve my games but still target my genre of app.

  • Thanks all - then I will wait for a bug fix. No go for me either.

  • you wont see them in the construct2 preview only in XDK

    Thanks - I followed that tutorial and no ads appear. Is there a tutorial that shows how to create the ad event / export the project/ run in XDK? Kind of a soup to nuts scenario?

    thanks much.

  • Great question. I would like some help on this too. For example, can I view the Admob ad in a C2 preview/compile or do I have to go thru the XDK process first?

JLH1964's avatar

JLH1964

Member since 11 Jul, 2014

None one is following JLH1964 yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies