Heya!I need help.How do I make a perfect oval rotation like this?I really don't know about velocities that are related to rotations.Help Please.Thanks.
I guess you want your player/helper to make a oval movement without itself rotating?Then just give it a periodic (sin/cos) x and y velocity with the x velocity being higher than y (like 2 times or 3 times higher). Use velocities like this:A*cos(Time*Pi/B)"A" determines how big the "ellipse" is and "B" how long it takes for one rotation.Keep in mind that you've got to use different functions for the x and y velocity ("cos" for one and "sin" for the other).
Cyanide said, May 23, 2009, 07:52:48 amIt's actually a bindtoparent effect. Check out the code library, there's something in there.Thanks a lot.This helps me during binding is needed.Thanks.MikeDaBike said, May 23, 2009, 12:45:05 pmI guess you want your player/helper to make a oval movement without itself rotating?Then just give it a periodic (sin/cos) x and y velocity with the x velocity being higher than y (like 2 times or 3 times higher). Use velocities like this:A*cos(Time*Pi/B)"A" determines how big the "ellipse" is and "B" how long it takes for one rotation.Keep in mind that you've got to use different functions for the x and y velocity ("cos" for one and "sin" for the other).Thanks a lot.this helps me when didnt need binding.Anyway, i have one question.how do i make a starting point like this for rotation?coz' i cant make it like that.when my helper's velocity is x = -6 and time is lower than 9.after about time = 9.it will change to rotation.but, instead of rotating like that in the image, it will start rotating having upward-left movement first.instead of left then left-downward movement.Sorry if my explaination is like complicated. Please Help.Thanks.
it's a bit about some basic calculus concepts, you don't really need them as long as you use sin for one coordinate and cos for the other, then adjust the values.
Also check out some of the street fighter characters, they have rotating stars around their heads for their dizzy states. It's animation and like that other guy said it's a binding thing when you code it. An explod code I guess?You can copy the x,y positions of every sprite or design it yourself using the onion tool from fighter factory.Another character you wanna take a peak at is Ultraboninja's Ms.Marvel, she has a rotating fire ball move around her body.
For this example at the starting point the X velocity is at its negative maximum and the Y velocity is at zero and then increasing to its positive maximum. This means the X vel has to be -cos(...) and Y vel has to be sin(...)Try this:x = -cos(Time*Pi/180)y = 0.5*sin(Time*Pi/180)If you want a faster movement use 60 or 120 instead of 180.
MikeDaBike said, June 11, 2009, 07:35:50 pmFor this example at the starting point the X velocity is at its negative maximum and the Y velocity is at zero and then increasing to its positive maximum. This means the X vel has to be -cos(...) and Y vel has to be sin(...)Try this:x = -cos(Time*Pi/180)y = 0.5*sin(Time*Pi/180)If you want a faster movement use 60 or 120 instead of 180.Wow. It really works. !!!Thank You Very Much MikeDaBike For Help.It was great. Thanks for helping me out.