tm2000's Forum Posts

  • The leaderboard only exists within the game - it's called back in via Ajax.

    So annoying. I can tell they are fake because the times they are submitting are impossible!

  • No - it uses a PHP script which game with the leaderboard plugin I bought.

  • Hmm Ok thanks for the advice.

  • The prize is fairly valuable yes. I just assumed that it would be reasonably secure.

    Are there any techniques to minimise this?

  • I have set my car sprite speed to 600.

    What unit is this though?

    600px per second?

    I'm trying to work out the fastest possible lap time.

  • HI there,

    I have a simple racing game which uses the EasyLeaderboard plugin to post the scores to a MySQL Database.

    I am running a competition with prizes.

    I have noticed a few entries which must be fake, because the times the users have recorded are impossible.

    Does anyone have any clue as to how someone would change a score - I've opened up developer tools in the browser, and the score is nowhere to be seen, so can't be changed there.

    I don't know where to start?!

    Thanks

    Andy

  • Hi All.

    I have a game which is to be played in the browser (mobile and desktop).

    With the standard HTML5 Export, it simple resizes the canvas in proportion.

    But, on a large screen, the game is HUGE!! I was hoping with CSS I could set a max-width, but i cannot get it to work in proportion.

    Any tips for this?

    I could use an Iframe, but I'd rather not!

    Any ideas would be much appreciated!

    Thanks

    Andy

  • Unfortunately I can't see any way to add your code to my leaderboard.

    The leaderboard is generated via a json string into an array by the easyLeaderboard plugin.

    Your code is brilliant - but I just cannot see any way to implement it.

    Below is what i have:

  • Thanks for this! I will give it a go!!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I found a line in the c2runtime.js file which said:

    score_ = parseInt(score_);

    I changed this to:

    score_ = parseFloat(score_);

    and now my decimals are showing!!

    Only slight issue now is that it's not always showing two decimal places - so if the score is:

    17.40 it's displayed as 17.4. Is there any way to display it as 17.40?

    Thanks for all your help guys - I got there in the end but wouldn't have without your helpful steers!!

  • Thanks - I thought the same, but there isn't anywhere within the plugin i can see where I can divide the result. This is what I have in my leaderboard sheet:

  • If I remove the decimal point, e.g. 12.34 > 1234 - the full four digit number shows.

    so it's definitely rounding on the decimal.

    if i change the value in the database to 20s 12ms, it comes into the leaderboard as 20. So it seems like it will only read a number, and then anything after that is clipped??

  • Thanks - I am on an https server using Construct3 - but it only shows when i upload the files to the server manually and view through a browser.

  • Yes I'm sure it is - it's rounding down the whole time.

    I just cannot see where this is happening.

  • Thank you for your continued help - I really appreciate it.

    The data from MYSQL only comes in when the game is live on a server - in Debug mode, the leaderboard is empty - so it doesn't pull in the scores. I think this is a security setting in the plugin which means that the game only works in the location you specify.