IceTeaDestroyer's Recent Forum Activity

  • > To make things clear: I have a sprite. When It's clicked its gonna add 1 to "a". I want to make when "a" reaches 10, 20, 30, 40, 50, 60, 70 and so on to add 1 to "b". Like this:

    > a=10 b=1

    > a=340 b=34

    > a=555 b=55

    > a=29 b=2

    >

    Try "On sprite clicked" > "Add 1 to value "a"" & "Set value "b" to (floor(a/10))".

    see my example: [attachment=0:74y1j61i][/attachment:74y1j61i]

    Thanks It works now!!!

  • To make things clear: I have a sprite. When It's clicked its gonna add 1 to "a". I want to make when "a" reaches 10, 20, 30, 40, 50, 60, 70 and so on to add 1 to "b". Like this:

    a=10 b=1

    a=340 b=34

    a=555 b=55

    a=29 b=2

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You could simply use the System-Compare two values condition.

    First value would be Global variable "a", and compare values would be "10|20|30|40..." etc then set Action to add 1 to Global 'b'.

    Yes, it would be simple, but I still want to add 1 to "b" when "a" is 18965484848321850. It's impossible to do it by the way you said because number "a" has no limits. So i hope there's an easier way to do it.

  • Hi!

    I have two global numbers (a, b) and i want to add "b" 1 when "a" equals to 10, 20, 30, 40, 50, 60, ...etc. How to do that?

IceTeaDestroyer's avatar

IceTeaDestroyer

Member since 21 Jul, 2014

None one is following IceTeaDestroyer yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies