Migow's Forum Posts

  • 6 posts
  • Thank you

  • I explain:

    I'm making some idle/clicker game, and when you buy something from the shop, the item's price value should multiply itselft by 1,2.

    But:

    The price is 10 basically, and here what it going on:

    10

    *first buy*

    12

    *second buy*

    14,4

    *third buy*

    17,28

    and it add so much decimals that the text start to be off the screen.

    So how I remove decimals from values ?

    To make something like this:

    10

    *first buy*

    12

    *second buy*

    14

    *third buy*

    16

    A thing like that

    So how do I remove decimals from values ?

    Tagged:

  • Yeah, Layers are goodly assiged to the good event sheets !

  • Thank you !! It's worked ! :D But now i have another problem: When i have the good number of Coins to buy the upgrade (The Coin with a cursor on it) and i click on Shop to go to the shop layer, the game automaticly do the buy of the upgrade, without i click on the sprite. Here's a screen from the code (i have added a line but i don't think it's that)

    Legend:

    PPS= Pièce Par Secondes (Coins Per Seconds in English)

    PPC= Pièce Par Click (Coins Per Click in English)

    PCP= Prix Curseur (en) Pièce (Price Cursor (made of) Coins in English)

    The others valors aren't important (I think).

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sorry i've forgotted, here the video:

    youtube.com/watch

  • Hi ! I'm trying to make a game, (a clicker) but my second buyable ameilloration (+1 Coin Per Second) don't work, you will understand with the video and the screenshot down there.

    Tagged:

  • 6 posts