How do I make it so that it only logs the player into Game Center once?
VinnyAmatoGames
Member Posts: 18
Hi. I have a leaderboard icon in my game. Every time it appears it logs the player into Game Center. This is a problem because I want the player to only log into Game Center once until they close the app. How can I do this?
Comments
Have you tried putting the Login Behaviour in a Loading Scene, before your Main Menu appears?
http://www.arcaderz.com
You could also add a boolean attribute to your game called loggedIn and set up a rule like this:
That way you'll only log in once, when loggedIn is False.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Thank you! That worked!
@jamie_c
Ain't it supposed to be automatic? When already logged in, even if you click a login button or go back to the initial screen if you have an auto login, it won't login again?