How do I Show score with javascript pop-up?

0 favourites
  • 3 posts
From the Asset Store
Relax and relieve stress by popping bubbles in Fidget Anti- Stress Releaser!
  • Hi !

    I've made couple of games for and android app like Gamee.

    Now my android developer wants me to show the player score at the end of every match so he can read the score from pop-up and use it in app and send it to server. here is couple of questions:

    1.how can I run javascript pop-up at the end of matches ?

    2.where can I find the global variable called Score in my project to use it in pop-up dialogue.

    Thanks for your time.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You have to call execute Javascript from the Browser plugin with something like that:

    "var myPopup = window.open("""", ""MyPopup"", ""width=200,height=100""); myPopup.document.write("&Score&");"

    Score is you global variable.

  • You have to call execute Javascript from the Browser plugin with something like that:

    "var myPopup = window.open("""", ""MyPopup"", ""width=200,height=100""); myPopup.document.write("&Score&");"

    Score is you global variable.

    Thank a lot , I just imported browser and used the pop-up action in my event sheet and that solved my problem

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)