SteveKane's Forum Posts

  • I've created a button that plays a sound when clicked, and it works fine but i wanted it so that the sound will only play once, even if the button has been clicked several times during the sound playing and the only when the current sound has finished can the sound play again.

    I've seen a few threads on here regarding audio playing once, and they've all been fixed by using the 'trigger once' condition, but this hasn't worked for me.

    Right now, if i continiously press the sound button, the sound will constantly play, which i understand it will do normally. I added a 'trigger once' condition hoping this would fix the issue, but it hasn't worked.

    I'm sure i'm missing something obvious but would appriciate help on this.

    dropbox.com/s/3hc55wysgapc0gr/example.capx

    Thanks

  • mrEkli

    Yes i am, i've even changed the script in my 'intelxdk.config.additions.xml' to the following as shown on the shatter-box website where i got the plugin from -

    <intelxdk:plugin intelxdk:name='https://github.com/cranberrygame/com.cranberrygame.phonegap.plugin.game#45191b3570a2ae4dc9646685b65f4a7994ed9952' intelxdk:value='https://github.com/cranberrygame/com.cranberrygame.phonegap.plugin.game#45191b3570a2ae4dc9646685b65f4a7994ed9952' >

    <intelxdk:param intelxdk:name='APP_ID' intelxdk:value='YOUR_GOOGLE_PLAY_GAME_APP_ID' />

    </intelxdk:plugin>

    I've replaced 'YOUR_GOOGLE_PLAY_GAME_APP_ID' with my Google Play Games ID, although i've left 'APP_ID' as it is.

  • Oh yes, sorry but i forgot to mention that i'm using Cranberry's Phonegap Google Play Games plugin too but its still not working for me.

  • condolent

    I think you have the same problem that i'm having, I've got issues with Google Play Games Services too. I can't get my game to login to Play Services after setting everything up so as a result my leaderboard etc won't open.

    I've setup Play Services on the developer console, setup the beta testing and added events to login to Play services on my game but nothing happens when i try to get it to login.

    I would like some help to get this sorted too as i don't know what the issue is.

  • The problem i've got is that my game is not logging in to Google Play Services, i can't check the leaderboard as it doesn't login.

    It seems simple enough to create an event to login, this is what i've got - 'Start of layout' - PhonegapGame - Login

    I've copied and pasted the following into my 'intelxdk.config.additions.xml' -

    <intelxdk:plugin intelxdk:name='https://github.com/cranberrygame/com.cranberrygame.phonegap.plugin.game#45191b3570a2ae4dc9646685b65f4a7994ed9952' intelxdk:value='https://github.com/cranberrygame/com.cranberrygame.phonegap.plugin.game#45191b3570a2ae4dc9646685b65f4a7994ed9952' >

    <intelxdk:param intelxdk:name='APP_ID' intelxdk:value='YOUR_GOOGLE_PLAY_GAME_APP_ID' />

    </intelxdk:plugin>

    I've replaced 'YOUR_GOOGLE_PLAY_GAME_APP_ID' with my Google Play Games ID, although i've left 'APP_ID' as it is as there was no mention of changing this, should i insert my App ID here too?

    Also, i haven't checked anything in the Plugins section in Intel XDK, do i need to check anything?

    I've done whats been mention on this thread but i don't know why its not working for me.

  • For some reason, it's not working for me. I've followed the instuctions on here and have managed to get everything set up, but when i go to test the Google Play services, nothing happens. I've got it set up so that it logins at the start of the layout, but nothing happens and if i try to click on the leaderboard button, it does nothing.

    I've set up the Alpha and Beta testing on Google and have downloaded the Beta version of my game after publishing Google Play Games but am not getting anything. I know that it says that you can test Play services in Beta but has it worked for you in Beta? I don't want to publish the game until i'm sure that the Play services works first.

  • It's fine, no worries, i appriciate you taking time out to help.

    I've changed what you've said to do but it's still not working. I've set an event which checks if the user is online at start of the layout and if they are online, login user, but it's not doing that for me.

    Is it not working because i haven't published Google Play Services? I've done all the requirements but haven't published as i wanted to test it first. I'm part of the testing & beta access so it should work but its not.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks, i've followed in instructions on this thread but i'm unable to get it working. When i click on my leaderboard button on my game, nothing happens. I've completed all the steps in the Google Play services section (leaderboard, achievements etc.) but i haven't published it yet as i wanted to test it before. I've signed up for the testing program and downloaded the beta version of my game through google play but it's not working for me.

    Do i need to publish Google play services in order for it to work?

    Also, in Intel XDK, in the plugins section, i ticked Google Play Services, is that nessessary?

  • I've done that and got my ID. I've input my ID in to the Phonegap Game properties section, my question is do i use that same ID when it asks for a leaderboard ID when you create a "show leaderboard" action?

  • On the 'show leaderboard' & 'submit score' action, it asks for the Leaderboard ID. What do i put in here? Do i put the Google Play App ID in here or something else? Thanks.

  • Anyone?

  • I've got a quick question regarding the Cranberry Phonegap Game plugin. On the 'show leaderboard' & 'submit score' action, it asks for the Leaderboard ID. What do i put in here? Do i put the Google Play App ID in here or something else?

  • TheDom Thanks for the advice, i'll try it. I was under the impression that families would be good for performance based on what i've read. From what you've said, would i need to repeat the event that i've used for families on each object for my background and control speed through instance variable?

  • Hi,

    I've been testing my game and noticed that the scrolling backgrounds on my game are affecting the performance of my game.

    I've got 3 layers for my background which scroll at different speeds to create a infinite parallax effect, which i'm doing through families.

    If i turn this off and leave it as a static background, the performance of the game on phones improves quite a bit, so are there any methods or advice i could use for my background to create a parallax infinite scroll like what i have now that doesn't take a hit on performance as much? Sorry if this question seems vague.

    I've provided a capx, this is just the autorunner template with very stripped out backgrounds from my game with events and family included to show how the background is on my game.

  • I'm not sure if it'll work, but you could try setting your ads through global variables? You could do something like having your variable set at 1 at the beginning to show ads and set it to 0 during gameplay.

    I haven't tried this , so I don't know if it'll work but it's a suggestion.

    To be honest, I would have thought that the option to hide interstitial ads would be available seeing as there is one for banner ads, but then again I don't know much about implementing these things into Construct 2 so who knows really.