Posted by altoiddealer
in "Tractor Beam" attack - how to deal with axis (Started by altoiddealer December 28, 2014, 04:55:13 pmBoard: M.U.G.E.N Development Help
I'll probably add some flashy effect to make the sudden axis switch look less noticeable.
Code:
[State 3303, 1]
type = Offset
trigger1 = Time = [0,100]
y = Const(size.mid.pos.y)
Thank you again!!! My hero!




Really, it's just a matter of offsetting the extra distance by calculating how much the sprite is off. You would just trigger that on the frame/state/whatever that you need it to. The sctrl would probably be Offset. I've had issues with PosFreeze in the past, but I think it was just my situation. See how it works for you though

I'm assuming it would work, but it's just not doing the math for the "Scale" parameter. I tested by removing the math and changing P2's Constant Height to "2," and he is drawn at 2x size. I also understand that there are other factors I will need to take into consideration, such as P2's Const(size.xscale) and Const(size.yscale)
). Speaking of which I might change that so he actually bends backwards or something, now that I know how to deform (warp) my 3d model.
