Trying to create boost-able progress bars!

This forum is currently in read-only mode.
From the Asset Store
Progress\Loading Bar. Now Load you game like a Professional.
  • I'm making an Idle game (a game you let run in the background while you do other things and it pretty much automatically proceeds without you, but that's beside the point) and here is an example of my progress bar:

    <img src="http://i.imgur.com/WDNNa.png" border="0">

    The green fills up the orange bar at 1 pixel per 30 ms, and when it reaches the other end of the bar, it gives EXP and coins, as seen here for example:

    <img src="http://i.imgur.com/yQI6P.png" border="0">

    When the game is "completed", the progress speed will be far, far lower, it's only fast as is so that I can level up quickly to test things, which comes to the problem I am having. Here is what I would like to do with it:

    There is a button you can press to spend some coins and temporarily increase the speed of the progress bar, and it can be repeatedly clicked to speed the boost up even more, at least until you are out of coins. I know how to make the button and I know what to do with it, but the problem is that I have no clue how to make temporary boosts.

    If you want to mess with the .cap, download it here. You will likely need the Sprite Button Plugin to open it, however.

    I would really appreciate a tutorial of some sort instead of "just do X and Y will happen", it'd be much more helpful.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's late and I'm about to go to bed, so I'll check it out tomorrow, but as a quick thought to do what you want, here's my suggestion.

    If Coins > Cost

    --> If Spend Coins : Add 10 to global('Temp Boost')

    If global('Temp Boost') > 0 : Set global('Temp Boost') = global('Temp Boost') - 1 * TimeDelta

    --> Trigger Once : Set Progress Speed = Progress Speed * Boost Multiplier

    If global('Temp Boost') <= 0 : set global('Temp Boost') = 0

                                 :Set Progress Speed = Default Progress Speed

    Where "Progress Speed" is how fast your Progress speed normally is, and Boost Multiplier can be 1.5 for half time faster or 2 for twice as fast.

    Like I said, didn't look yet, but I feel like that would do what you're asking. That's what first came to mind anyway.

  • It worked flawlessly, thank you so much, now I can stop being frustrated and work on the rest of the game ! <img src="smileys/smiley20.gif" border="0" align="middle" />

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