31
Ask a Question / Re: how to detect google play connected?
« on: May 08, 2017, 02:33:12 am »
I'm not sure but I think that if you're putting it under "when created", saying "if not connected" makes the code want to check the connection but since the action is required immediately. I usually put Game Center and Google Play connections in a loading screen before the main menu.
Otherwise you could add a boolean game attribute to the setup and call it Connected or something.
>When created
"If [Connected] = false, init Google Play"
When updating >
"If connection is established, set [Connected] to true
otherwise set [Connected] to false"
Otherwise you could add a boolean game attribute to the setup and call it Connected or something.
>When created
"If [Connected] = false, init Google Play"
When updating >
"If connection is established, set [Connected] to true
otherwise set [Connected] to false"