Gasil
Member
EDIT: Holy crap, my english is truly bad, I'm sorry about that. I meant this:
Step Event.
A = 15;
B = 15;
C = 20;
if (A + B > C)
{
A += B - ...;
}
At the next step B is adding its value to A (15 + 15 = 30), however B will make A to become higher than C (30 > 20), and I don't want A to overshoot C, so I thought I should check that if in the last step A + B are greater than C, then subtract B the difference (30 - 20 = 10) and add it to A so it can finally be A == C.
I think that's better? Somehow, I think I answered my own question. I will check all your solutions and see which one I'm looking for.
Thank you all for your help <3
Step Event.
A = 15;
B = 15;
C = 20;
if (A + B > C)
{
A += B - ...;
}
At the next step B is adding its value to A (15 + 15 = 30), however B will make A to become higher than C (30 > 20), and I don't want A to overshoot C, so I thought I should check that if in the last step A + B are greater than C, then subtract B the difference (30 - 20 = 10) and add it to A so it can finally be A == C.
I think that's better? Somehow, I think I answered my own question. I will check all your solutions and see which one I'm looking for.
Thank you all for your help <3
Last edited: