question

Dominic avatar image
Dominic asked

GameCircle initialization

Hi, We're developing a game with Unity and I was wondering if there's an error about the comments on this page, concerning GameCircle.init() : https://developer.amazon.com/sdk/gamecircle/documentation/unity-gamecircle-setup.html [i]// GameCircle should only be initialized when the game is first launched // Use a bool to run GameCircle.init() only on first launch[/i] However in the GameCircle.cs file from the SDK it says: [i]// Starts up the GameCircle system. Must be called before any other methods public static void init( ... )[/i] So, should we call GameCircle.init() on every launch or only the first launch? Thanks.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Dixith@Amazon avatar image
Dixith@Amazon answered
Hi, Thank you for your post. Gamecircle should be initialized only once when the game is first launched. So you have to call Gamecircle.intit( ) method on the first launch only. From second comment, we meant that first call the Gamecircle.init( ) method and then call any other method in Gamecircle.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Dominic avatar image
Dominic answered
Thanks Dixith for the answer. Another concern that I have is that our game is already live on the Amazon App Store. Our game on the store use GameCircle but only for the achievement. We're planning an update to use Whispersync. So we used to call GameCircle.init() with last parameter to false, like this: GameCircle.init(false, false, true, false); What would be the correct behaviour for our new update that support game circle achievements and whispersync now? Should we keep calling GameCircle.init() on first launch only (with now the 2 last parameters set to true.) Will whispersync work properly for users that already have some progress before the update and haven't init game circle with whispersync to 'true'? Thanks.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Dixith@Amazon avatar image
Dixith@Amazon answered
Hi, Thank you for your reponse. Please find the answers for your queries. 1.)You have to call Gamecircle.init( ) method on first launch only. As you mentioned above, the correct behavior for implementing whispersync and achievements is setting last two attribute value in Gamecircle.init method to true. GameCircle.init(false, false, true, true); 2.) The new update of WhisperSync implementation in your App, won't impact the existing users that already have some progress before the update of App. Hope this information helps you.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.