trigger1 = cond(enemynear, vel y < 0, (p2bodydist y = [-85,10]), (p2bodydist y = [-33,10]))
I have this piece of code put in the AI. I want it to be able to catch the opponent midair. I wonder if I am using the right condition for this.
I feel like I am not aware how < and > work in Mugen.
Vel y > -5 mean -4, -3,-2 and so on, like in mathematics, or is it -6, -7, -8? It may sound like a stupid question, 'cause it is, but I wouldn't mind hearing the answer to that just to make sure.
And if you possibly have a better way to keep the track of opponent while his is midair I would be grateful. Because the higher is the opponent, the bigger speed he will have before landing. At first, his y velocity is -1, then -2, -3, -4 and so on. [/size]