
Board: M.U.G.E.N Development Help
Meanwhile I've encountered another issue, which may or may not be a real problem, and if it's caused by what I think it is it may not even be fixable really.
anyways, basically getting a warning for an equation dividing by zero. The equation involves dividing the Vel Y by the Vel X, and uses an ifelse to return a seperate equation in the case that Vel X is zero, which would otherwise cause problems due to the aforementioned issue of trying to divide by zero. It seems to me that even thought the division equation is not being used during the instance of Vel X being zero, MUGEN is still calculating the equation (or trying to) and returning an error. So I would imagine that provided my coding is correct it shouldn't be a problem, the only thing that has me concerned is that the error message is constantly shown even in situations where I know that Vel X is not 0. So altho I feel I have a good idea whats going on, I'm not certain about it.
Either way, the code seems to work correctly from what I've seen, but here's the equation that's causing the issue to look over in case I missed something.
Code:
fvar(2) = ifelse(vel x=0,vel y,vel y/abs(vel x))
EDIT: actually unless I'm mistaken I think the division by zero is being triggered during the hitpause (the code is active during an air hitstate) while the character is not moving.