DaxyRoyal's Forum Posts

  • 3 posts
  • in this instance time is just the time function in contruct 3

  • I figured it out! I made a global variable called depletionRate and set it to 18 you can set it to any number you want. and then I made a sprite that was a rectangle and

    use the Compare width option and set it to this formula (100 + (BowlProgress*5))- (time * depletionRate)

    i then create an ever tick event and added the rectangle sprite and added the condition compare width and set it to (width > 0) and use the set width action and entered this formula: (100 + (BowlProgress*5))- (time * depletionRate)

    i then made an else statement that said if width was less that 0 to end the game.

    so essentially the rectangle sprite bar decreases faster every second and when the bar empties the game ends.

    i can show my even list to anyone who also needed hello with this (100 + (BowlProgress*5))- (time *( depletionRate* time))

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello, I am trying to create a meter that gets bigger when you collect and deposit certain items into a bowl. I'm able to make the meter bar grow when we complete certain tasks and it depletes over time. but its depleting at a fixed rate how do I make it so that as more time passes the bar depletes faster?

    Thank you in advanced. this is the formula im currently using

    (50 + (BowlProgress*5))- (time +10)

    BowlProgress is what needs to be filled in order to fill the meter and time is juts the built in timer function in construct 3.

  • 3 posts