[Ajax] Simple scoreboard

0 favourites
  • 7 posts
From the Asset Store
Basic Rounded Vector Geometry Player Design with Glow for 3 player games
  • Hi,

    I have i nice idea how to make a simple scoreboard for ours games, but I do not know enough ajax/php/sql language to do it myself. So i want to please some one for help me.

    It's my idea:

    1. In game i make a textbox where player wrote his name. This textbox send player name to variable.

    2. The second variable keeps score.

    3. When the player click submit score btn then the ajax request url (example /blabla/addscore.php) (how to transfer the collected data?)

    4. This addscore.php have instruction that add name and score to SQL database!

    And thats all. In simple site i will show this scores.

    It is possible? Please help me how this php instructions should look like.

  • Maybe this will help.

    construct.net/en

  • Thanks You very much! It's really help my, im almost done :) Just hava a one problem.

    Only 9 text elements shows data from database. Other 24 text elements shows "0". How can i solve this problem?

    I think it's the problem is in Array - For each X element and his action but i completely dont understand that action so can't find a solution :/ Please help.

  • Well in the example the array is only set to store 10 values, so click on your array object and change the WIDTH properties to however many you need.

    <img src="http://content.screencast.com/users/ArcadEd/folders/Jing/media/4767264b-ed28-4753-ac4d-301d0236b9dc/2013-05-24_0740.png" border="0" />

  • Thanks You very much!!! It's works great!

  • awesome tutorial:)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for creating the tutorial. Will this work for Windows Phone, iOS, and Android too?

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