0 votes

Good day everyone,

I need some help with the Game Center in iOS.

Ok, the singleton is present (i can check it), but after that everything i do on the return value got to "null" anybody had experienced such thing? I'll post some code:

func init() -> bool:
# Check if plugin was added to the project
if Engine.hassingleton("GameCenter"):
GCenter = Engine.get
singleton("GameCenter")
print("Game Center Singleton Present ", GCenter) # HERE I CAN CHECK AND OK

from here any var returns "null"

var GCAUTH=GCenter.isauthenticated()
if GCAUTH :
print("Game Center Authenticated!")
GC
Autenthicated=true
var GCAuthresult = GCenter.authenticate()
print("Authenticate ",GCAuthresult)
if GCAuthresult["type"]=="authentication" :
if GCAuthresult["result"]=="ok":
print("Game Center Authenticated!")
GCAutenthicated=true
if GC
Authresult["result"]=="error":
var error=GC
Authresult["errorcode"]
print("Game Center NOT Authenticated!, Error Code : ",error)
GCAutenthicated=false
return GC
Autenthicated

PLEASE HELP!!

Godot version 3.2.1
in Engine by (24 points)

I went deeper, and i think it doesn't generate any event response.

Is this a BUG? anybody had success with Game Center in Godot 3.2.1?

Anyone?

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.