sebastiangohhy's Recent Forum Activity

  • AllanR

    THANK YOU, exactly what i needed

  • Hi there,

    I have an array that contains numbers

    one problem with the sorting is that its does not read the whole value example

    1.0

    2.10

    3.2

    this is the result of sorting.

    what i want is

    1.0

    2.2

    3.10

    Any idea how to accomplish it?

    Thanks

  • 99Instances2Go

    Hi,

    Yes, its global variables.

    So you are suggesting that i store it in an array first then sorting them out?

  • Hi there,

    I have 6 variables and i want to display the top 3.

    I know that a loop is required but how do i implement one so that it compares all 6 and return top 3?

    Thanks!!!

  • oosyrag

    Im not tracking scores, im tracking which questions is done right or wrong by students. specific questions. I want like a game statistic like "the walking dead choice game" It shows how many percent got right and how many get wrong.

    sorry if i didnt make it clear

  • vijkumar219

    Hi, what seems to be the problem

  • Hi there,

    I have a quiz based game.

    I would like to track which questions the students get right or wrong.

    A function will randomly pick questions from a txt file, so i cannot individually specify to write to a file if the specific question is right or wrong.

    Is there other methods, programs or plugins that works well with construct 2 to achieve this analytic function>

    Thanks.

    p.s

    The game will be run using localhost. (I have tried google analytics which didn't work because i don't have a website)

  • Hi there,

    I have a quiz based game.

    I would like to track which questions the students get right or wrong.

    A function will randomly pick questions from a txt file, so i cannot individually specify to write to a file if the specific question is right or wrong.

    Is there other methods, programs or plugins that works well with construct 2 to achieve this analytic function>

    Thanks.

    p.s

    The game will be run using localhost. (I have tried google analytics which didn't work because i don't have a website)

  • Currently, the ajax is posting url parameters to a php which will then write to a txt file.

    I want to eliminate php, so is it possible?

    Which means ill have a button that will read anything in the input box and write it directly to txt file without ajax or php?

    Thanks

  • cjbruce

    Its alright i found out. just needed to remove some extra "

    "http://localhost/results.php?name="&URLEncode(TextBox_player1.Text)&"&score="&URLEncode(score_player1)&""

  • cjbruce

    URL: "http://localhost/results.php?name="""&URLEncode(TextBox_player1.Text)&"""&score="""&URLEncode(totalscore_player1.Text)&""""

    Thanks for your help, i manage to modify your codes but just a tiny problem

    the output is like this

    name=%22testname%22&score=%22Score%3A%20500%22

    is there a way to remove the %20 and %22

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • cjbruce

    Do I use PostToURL?

    Is yes, is is like this?

    Tag: "player1"

    URL: "http://locahost/results.php?name=TextBox_player1.Text&score=totalscore_player1.Text"

    Data: "name=URLEncode(TextBox_player1.Text)&score=URLEncode(totalscore_player1.Text)"

    Method: "POST"

sebastiangohhy's avatar

sebastiangohhy

Member since 8 Mar, 2017

None one is following sebastiangohhy yet!

Trophy Case

  • 7-Year Club
  • Email Verified

Progress

8/44
How to earn trophies