sadism's Forum Posts

  • hi

    I want to set a random number and when system choose a number after 24 hours system choose another one .

    exp : cost for a flower : random( 18,25)

    system choose : 21

    after 24 hours system choose cost again.

  • thanks for your help

  • Dont store the amount. It is changing while offline. Buildtime can be negative !

    On item 'time' get

    set buildtime to max(0 , (ItemValue - awaytime))

    set amount to (buildtime) - (round(buildtime/10) *10)

    i set those you are said. "build time" is perfect but "amount" has problem.

    when build time is (last number < 5) :

    94 ,844 ,54, 1014 : "amount"= 4

    23 , 2543 , 3 , 83 : "amount"= 3

    when build time is (last number >= 5) :

    99 , 1059, 729 : "amount"= -1

    597, 67 , 337 , 4597 : "amount"= -3

    when build time is (last number = 0) :

    "amount"= 0

  • i set those you are said. "build time" is perfect but "amount" has problem.

    when build time is (last number < 5) :

    94 ,844 ,54, 1014 : "amount"= 4

    23 , 2543 , 3 , 83 : "amount"= 3

    when build time is (last number >= 5) :

    99 , 1059, 729 : "amount"= -1

    597, 67 , 337 , 4597 : "amount"= -3

    when build time is (last number = 0) :

    "amount"= 0

  • 10 20 0 40 50 60 70 it's for 10

    5 10 15 20 25 30 35 40 it's fo 5

    7 14 21 28 35 42 it's or 7

  • thanks bro.that's cool way

  • i want round of 10 for result bro. if click the boxes show the multiple number of 10.

  • thanks bro

  • https://

    drive.google.com/open?id=0BxuM6uiMrxpqaHlCMktFbUdyLWM

    see this and then exit the game and back again. you saw "amount" after 10 second subtract . and the "build time" (for exp is 28). the system don't calculation this 2 second of "build time".

    I should pin this two variable together . when "amount" is 4 "build time " is 40 . and when "build time" go to 30 subtract 1 of "amount, "build time=10" subtract another one. and when go to 0 subtract another one.

  • I have two gloal variables and a button. when i click the button increase "a" variable to 1 and increase "b" variable to 10. every 1 second subtract "b" 1 and every 10 second subtract "a" 1 .

    So i click button 4 times then "a"=4 ,"b"=40 . I save this data n localstorage and after 6 second i exit the game . when I' back : "a"= 4 and "b"= 34 . In another word : "b"=34 when i'm back, after 4 second "b"=30 , and then subtract from "a" 1.

    or : "a"=6 "b"=60 , 8seconds lef "b"=52, after 2 second should "a"=5.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi

    see this exp : https://drive.google.com/open?id=0BxuM6 ... k43SEgzTTg

    i want when i click red sprite subtract from global variable,e but if (exp:20 is global variable) i click red and subtract 1.24 show me 20 and when click the other one and subtract 7.51 show me 10.

  • rexrainbow thank's for answer. i used your plugins but i couldn't set it

    https://drive.google.com/open?id=0BxuM6 ... U11d0I2dW8

    this is my exp. i can save global value but i can't save arrays for checking .

  • yes it is.

  • i use text box for showing time . but i can't Calculation time and minus from origin time?

  • i click a button and a flower gonna to build 3 hours later and i exit the game game.

    1- i back 2 hours later and i want system Calculation time and show me remaining time?

    2- i back 4 hours later and i want system build flower and increase value?