winstreak's Recent Forum Activity

  • 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

  • Try Construct 3

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

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

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

  • In just under 4 more hours

  • I am currently at work - I will take a look at this when I get home and show you what I would do ^^

  • Platform Behavior will be your best friend for this. Is there a specific feature you are trying to accomplish?

    I made a quick tutorial that walks through setting up basics Platform features as well as bouncing off another object.

    youtu.be/aCXltuFeXts

winstreak's avatar

winstreak

Member since 4 Dec, 2019

Twitter
winstreak has 11 followers

Connect with winstreak