![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Konevgate |
I uploaded a game to Kongregate where it shows the user’s name in a Label. But it doesn’t work. I’ve looked at these two posts but nothing:
1 Post
2 Post
My porject:
In the Godot project (version 3.0.5) I have the following GDScript:
extends Node
func _ready():
var nametext= JavaScript.eval(kongregate.services.getUsername())
get_node("Label").set_text(nametext)
And when I export it, I modify the HMLT file, and add the following in the head:
<script src='https://cdn1.kongregate.com/javascripts/kongregate_api.js'></script>
And in the body in the function section I add this:
kongregateAPI.loadAPI(function(){
window.kongregate = kongregateAPI.getAPI();
});
When I upload it to Kongregate I don’t enter anything in the “API CALLBACK URL” and I don’t add anything in the “Static API”.
I don’t know what the problem is.