0 Favourites

Clicks per second. Noob question.

  • Hello All,

    I'm new in the community since I bought my lincence on Friday. I was doing the first game of 5 of the Ebook "Build 5 mobile games in just 5 days". The first game is simply to click the bubble that are showing up on the screen. However I would like to change slighly the "Score". Instead of put the number on bubbles that you have clicked I would like to have a float number which is showing the number of bubbles you are poping up per second.

    I created three variable:

    Time= which start from 1 and is increasing 1 every second.

    Points= which is the number of bubbles you have clicked so far.

    Score = every tick set value of Score as Points/Time.

    However, I have two issue:

    1. I don't manage to get a float number such as 3,15 or 2,75.

    2. The Score varible is dissapearing after 5 seconds.

    If someone has any idea how to fix it up I would be really helpful.

    Thank you so much.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • 1. Are there 3,15 bubbles? Perhaps 3 or 4 or 5 etc.

    2 Your text object that shows the Score is probably small, just try to scale it a bit so the characters will have room to show up.

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