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...