play.idevgames.co.uk
   170 GAMES
   425 MEMBERS
   16 TUTORIALS
   53 DEV LOGS
Forgot your password? Click here
Back

Fetch Players Username With Construct 2


Posted: 2018-01-20 17:29:53 |    Posted by iDev |    idevgames.co.uk


3
Login to like

If you want to be able to access the players username in your game. You can easily do so by using ajax in construct 2 with the below URL.

https://play.idevgames.co.uk/request/user.php

The below example shows how simple it is to display as text. Make sure you add AJAX object to your project:

Would you like to comment on this post? Create an account in less then 1 minute. Click here

0
Login to like
Niko Commented:

i have a question i want to show to username on browser alerts but it didnt work first i tried to set it to the global text username and the alert shows nothinh then i tried to the alert to say the AJAX.LastData it didnt worked too or is it only because i didnt published it yet and is in a local host it dont work?

Back to top