tm2000's Recent Forum Activity

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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!!

  • 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??

tm2000's avatar

tm2000

Member since 23 Oct, 2017

None one is following tm2000 yet!

Trophy Case

  • 7-Year Club
  • Email Verified

Progress

8/44
How to earn trophies