I'm new to Construct and I'm trying to help a student of mine. He wants to add a global leaderboard feature to the "Ghost Shooter" demo game. I've built him a REST API that will respond to a GET on our endpoint /scores
with the current high score. A POST request to the same endpoint will compare a submitted score to the current and update if needed.
... But I have no idea how to retrieve the variable at the start of the game and how to post it at the end. I've read the AJAX article but it has no examples. Creating the AJAX object in the game sheet is awfully confusing. Can anyone show me what this would look like?