Posted by WastedCoder
in Help me do my math in Mugen :D (Started by WastedCoder May 01, 2023, 03:12:21 pm
Board: M.U.G.E.N Development Help
Board: M.U.G.E.N Development Help
He has physics set to S, which means that .85 friction is applied and this controller:
Code:
[state 0]
type = veladd
triggerall = time > 22
trigger1 = 1
x = 2
I am bad when it comes to maths, though I understand how friction is applied, but I want to calculate beforehand how many ticks will it take him to reach the enemy that is falling. I already have my Yacceleration formula and I need to insert something like this there:
Code:
p2bodydist x / vel x
How do I do the vel x math here if it takes number 2 from veladd, multiplies by friction thing, which results in 1,7, then it takes 1,7 multiplies it by friction thing again and adds it to the previous number, which results in 3,145? How do I make these calculations before the character even starts moving, so it charges only if he can reach in time?
Pls help