I'm having decent success with Google Play Services. Everything seems to work, login, and submit score triggers success.
Everything seems to work smoothly. The only thing I'm having trouble with is retrieving the score.
FYI -- I am in the testing phase not even to mobile yet. Strictly on the web.
Googleplay.HiScoreMyBest keeps showing as zero, even though submit score works and triggers submit score success.
Please help! I feel like I'm so close. I have turned off tampering on the dashboard. Tried many things. Am I simply not accessing the correct variable after Request player details?
If your suggestion is to use the Cranberry plugin will that work for web? Thank you.
I will answer my own question here in case anyone else has the same issue. I didn't need a plugin. I needed to request scores from the leaderboard first.
Where I got tripped up was I thought I could request player details and the person's best score (GooglePlay.HiScoreMyBest) would be available. No. Request the appropriate leader board (I recommend using "social" and "window" among the options) then it's available.
Thanks all! The Construct 2 community is superb, so I hope this helps! Cheers!
Develop games in your browser. Powerful, performant & highly capable.
Hi my problem is I don't know how to use google play services construct 2 inbuilt plugin
i have done something with following manual
but I did not understand how to use google developer console for preview in mobile or desktop
I think you have done this already so can you help me for doing this step
you can help with short commands like
go her >> click that >> do this >> do that etc
The best I can say is follow the directions step by step very carefully here:
Especially the part about enabling access in preview mode, copy & pasted below.
[quote:y2i36cq9]Enabling access in preview mode
When testing your project, your game will typically run from localhost or a local IP address for preview-over-wifi. Since this is is different to the published URL of your game, Google Play Game Services will block access unless you add the preview URLs as permitted locations.
Click Update. Now your game should be authorised to be accessed from preview mode as well as when you publish it.