Eastcr9w's Forum Posts

  • 6 posts
  • Hello,

    I made this capx a while ago, can someone help me correct it?

    I want to create a layout that display everything in an array.

    • Basically it will fills up the layout with information from the array

    the capx i provided would be alright with a little adjustment but I can't stop thinking that there is a another way....a better way to get the same result

    i could just use what I made so long its workable but i feel that i should ask for help first.

    Thanks in advance to anyone that can show me the right way to fix this.

    #the capx is a lil messy, i was lazy when i try to populate the array list.

    dropbox.com/s/6nj82vce1d6zkbm/Loading%20Array%20In%20informative%20form.capx

    backspace ^

  • Oh. This is wonderful.

    Thank you very much RamPackWobble

    ceil(lerp(0,heal,gvPercentageToTakeFromReserve))

    so... it does this? (from the capx)

    1) 0 to 10000(heal amount) takes 5% out.

    2) Change the gvAmount then deduct and add it from others

    nice! i gained a new achievement by learning lerp <img src="smileys/smiley10.gif" border="0" align="middle" />

  • I think that you have not seen the event sheet for ghost shooter. Why don't you take a look at it via

    new >template ghost shooter

    you should just remodel what you need from that. Containers are not

    necessary if your doing something simple.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It is almost the same as what i have in mine

    is there a way to make it fully uses up the heal? yours is not complete yet as it have a leftover of 5.

  • Ah, I am sorry. I forgot to explain...

    I want to make a healing ability with a speedup attribute while holding down the mouse button.

    example:

    1) Player with current hp 160 and max hp 5000, and a potion that can heals 1-99999 hp (depending on the charges on it)

    2) holding the mouse button down heals the player and at the same time use up the potion

    3) before the player hp reach 5000 hp, the number will slow down.

    the 1 * int((MaxHp - HP)/10) was an experiment for the speed up process.

    LittleStain

    1) sorry, a typo there. (earlier i had created an instant variable to test it out, works the same as a global tho...)

    2) hp/10 is to reduce the amount gain immediately.

    if

    1 * ((max hp - hp ) / 10)

    looks like this

    1* ((5000 - 0) / 10)

    without the /10 it will instantly heals the player.

    at the same time, the healing factor will start high up and go down.

    dropbox.com/s/ur14nlfbsx784fz/Hp%20Regen.capx

    ^^ capx is as above... just add the front part

  • Hi,

    I have been using construct 2 trial for a couple months now. Making small game examples as a hobby.

    I recently stumble on this problem and would appreciate it if someone could help me. Note, I do not have enough rep... so no capx.

    This is what i have.

    Global number Healing = 0

    Global number Hp = 0

    Global Number MaxHp = 5000

    ----------------------------------

    Mouse

    |left button is down|

    System Heal > 0

    Hp < Max Hp

               system| add 1 + 1 * int((MaxHp -HP/10) to HP

               system| Subtract 1 + 1 * int((MaxHp -HP/10) from Healing

    ------------------------------------

    Problem: Works fine if healing is same or more than Max.Hp, but it goes down to negative if healing is less than maxhp.

    Well, I am pretty sure that the problem is (1 * int((text.MaxHp -HP/10) to HP) as it just do a deduction base on the number it get from there.

    Any help or pointers would much be appreciated...

  • 6 posts