How do I submit many achievements by one call

Get help using Construct 2

Post » Mon Mar 06, 2017 4:09 pm

Hi guys. How do I submit many achievements for GP game services by one call.

The core logic i use:
1-Login check; 2-Submit achievement id; 3-If id submitted successfully; 4-show achievements.

But the problem to submit multiply achievements. For example I have global variable that change from 0 to 12. Each number is a different achievement. Now if I discover new level/task the variable will increased by one, and I can unlock new achievement. But what if I discover in one game session few levels, the global variable will increased by few numbers, and now if I want to submit achievements to GP services this will submit only last one, ignoring and skipping previous achiv. How you guys solves this issue?
ImageImageImage
B
45
S
17
G
3
Posts: 157
Reputation: 5,175

Post » Sat Mar 11, 2017 9:50 pm

I probably did not understand the problem because of my poor English, but since no one answered I take this opportunity to raise the issue.. may depend on with the reset global variables??
B
11
S
6
G
3
Posts: 250
Reputation: 3,154

Post » Sun Mar 12, 2017 5:02 pm

NN81 wrote:I probably did not understand the problem because of my poor English, but since no one answered I take this opportunity to raise the issue.. may depend on with the reset global variables??


In short, I have global variable that can change from 1 to 12. This numbers defined different achievements from 1 to 12 (total 12 achievements). So when you get your target your variable Increase +1 Now if you push "achievements" button, the game will make this logic:
1-Login check; 2-Submit achievement id (depend on what number from 1 to 12); 3-If id submitted successfully; 4-show achievements.

For example if you get first target your variable will rise from 0 to 1 and now you can push button and unlock new achievement in GP services. But if you get two targets before you push "achievements" button, now your variable is 2 so by submitting your id to GP you will unlock the last and only second achievement, ignoring the first one.

My little game (in alpha):
https://play.google.com/store/apps/deta ... vatorSpace
ImageImageImage
B
45
S
17
G
3
Posts: 157
Reputation: 5,175


Return to How do I....?

Who is online

Users browsing this forum: Bootfit, Huemerson, jorgmaquoi, unicornspitfire, Yahoo [Bot] and 6 guests