jobel's Recent Forum Activity

  • got it:

    "Time: " &zeropad(floor(time/84600),2)&"d "&zeropad(floor(time/60/60%60),2)&"h "&zeropad(floor(time/60%60),2)&"m "&zeropad(floor(time%60),2)&"s"

  • calminthenight I am converting the time variable, I don't want the current time.

    I am showing the player how long they played the game.

  • I can't find it but someone post a while back a way to easily format the system time variable into XX:XX:XX

    Pretty sure it was all on one line, or used on the Set Text action...

    does anyone know?

  • yes please star it, only 7 right now...

  • I'm getting an error when I try to upload screenshots. It lets me select the file and then upload, then says there was an error processing the file.

    I tried many different screenshots just to make sure it wasn't something with that one particular screen shot. Normally I upload screenshots all the time and this time I didn't do anything differently.

  • did you already make the function?

    you just call it in Actions

  • glad to hear!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Alright, looking at the debug layout, the variable system works fine. I just need to figure out how to make the cooldown boolean affect player speed.

    Also, do you have an idea of how to make an HUD stamina bar?

    yes include a c3p file if you can... not the whole thing, just a small test of it.

    for a stamina bar I use a couple different objects.

    1. the bar 'holder' Sprite, that still shows when the 'fill' is empty

    2. a bar fill Tiled Background, I use TB so it doesn;'t distort when changing the width - I figure out what the full width of the fill and store that in a variable called fullbarwidth

    Then I set the width Every tick to: stamina * (tb_fill.fullbarwidth / staminaMax)

  • here's how I would do it.

    Let's say you use stamina for sprinting. I would Add to a stamina value.. meaning when its full you've taken all the power you can manage, so you need to rest. So maybe "exhaustion" would be a better variable name now that I think of it!

    So this gives you 4 seconds of sprint, if you release before you go over the 4, the stamina cools down as fast as it went on. But if you go over 4 seconds, you overheat and can't use sprint for a the whole 4 seconds and the stamina comes off in 4 seconds.

    you can play with the numbers and make it more punishing to overheat or make the dissipation faster than it goes on. In that case just do Subtract dt*2 or something, so you would keep the 4 seconds of sprint (adding 1 stamina per sec), but if you let go early, the dissipation is only 2 per second.

  • very nice!

  • Finally got it working in Steam, its very exciting to see it "on the shelf" among other titles!

  • its slightly confusing that they are both called Greenworks, an official C3 version and one in development by the same name by GreenHeart? or are they the same thing?

    EDIT: okay so GreenHeartGames made Greenworks.js which Construct uses as an official plugin BUT the plugin has limited capabilities, Greenworks does MUCH more, basically the c3 plugin only uses achievements and for accessing the overlay. Construct Team has to get someone on that!

jobel's avatar

jobel

Member since 27 Jul, 2013

Twitter
jobel has 8 followers

Connect with jobel

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • x4
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

18/44
How to earn trophies