jobel's Forum Posts

  • 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!

  • 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!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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!

  • Ashley sorry to bother you with this, but I'm having trouble figuring out if I have the capability to do Steam Workshop in Construct3.

    Some devs say you can handle the entire thing in-game using Steam's API partner.steamgames.com/doc/api/ISteamUGC but I don't think that is supported in Construct.

    But even if I use a separate Construct Program to make and output mods (files), in order to export them to a 'steamworkshop public folder' it seems I would still need to use some sort of API function (and the same to read that folder in order to load them in the main game).

    Has anyone implemented this before with just Scirra tools (non-3rd party)?

  • Mikal I know you made an addon called Greengrinds but I'm not sure it had anything to do with workshop does it?

    however I am a little reluctant to use 3rd party addons, since I've been burned badly in the past with the Construct Team not supporting them in an update.

  • thanks, I've been looking at that. I wonder if anyone has done it.