winstreak's Forum Posts

  • Go ahead and give it a try - if you get stuck post your code and I will see what I can do.

  • There is not a built in that I am aware of. I use visible/invisible settings to effect it.

    Here's a 1 minute walk through to help ya:

    youtu.be/i4FhsCU6EqE

  • You can set the playback rate to change audio speed.

    This short video will walk you through a few scenarios:

    youtu.be/rJuDv2HHHnc

  • The Healthbar will look fine - the function was just there to stop current health from passing the minimum and maximum number

  • This here is your biggest problem

    On left click on plotChecks(Family) needs to have Spawn corn go to plotChecks not to plantable area

    You are essentially telling the system I am talking about this specific clicked on plotChecks, but then not saying to do anything with it on the right side.

  • Your call should be to the function you made (Not mapped function)

    You will make the function first - then you can call it by clicking on

    A function is just a set of events that will only happen when you call it-

    So you would create a function first - set it to do what you need - such as verify that current hp is not < 0 or > 22 and call it every time you change current hp

  • This caused me a lot of problems when I first started. This video will help you create a working inventory system that you can build into your game.

    youtu.be/FdhFzrF1UhQ

    The same principals I use for my current project:

  • Your event to show the health bar is set to every tick - now all you need to do is change your health

    So when you would normally be setting a miss you want to also subtract 1 from current health

    and add 1 to current health whenever they meet the requirement of your heal

    The Health bar will automatically show those changes

  • The way I tackled this option:

    I created several (The amount can change to your liking - obviously more is going to be a larger file) backgrounds

    Each background was a small repeatable background (Or what you labeled an infinite background)

    After I traveled 12000 distance units it would change to background 2 -> then 18000 changed to background 3

    This allows you to show scenario changes while keeping each one smallish

    If you use this:

    I suggest setting your infinite background as you already made as animation 1 - then adding the 2nd 3rd etc as new animations

  • It sets your width to the size of how much life you have left.

  • I am assuming your green health is the bar and health bar is the border

    Every tick ||

    Set greenhealth.width currentHealth/maxHealth*433

    You can add a clamp around that to stop it from getting too large or small

    Clamp(currentHealth/maxHealth*433, 0, 433)

  • Ya, you just want your current value to be the one that changes. You can set it to any amount at the start (So 11)

    gain should trigger current to go up by 1

    loss should trigger down by 1

    Every tick set your health bar width = current divided by max health * healthbar width

  • Here is a quick video walk through for you. Let me know if you need anything else!

    youtu.be/zIp-limn90I

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You definitely don't want an animation for every Health bar amount.

    This will show you everything you need to make a health bar.

    youtu.be/kAGlW4D0bG4

    My calls for +1 health and -1 health come from my mouse clicks so you will just need to set it to come from your Arrows.

    (You need a dialogue skip in your game - or a speed up typewriter effect)