Page 2 of 2

Re: Finding a random point on a circle

PostPosted: Mon Apr 20, 2009 4:25 pm
by Bee-Ant
Fuz, code to make elips move please...

Re: Finding a random point on a circle

PostPosted: Tue Apr 21, 2009 7:47 am
by Fuzzy
Just move the actor that draws it.

Re: Finding a random point on a circle

PostPosted: Tue Apr 21, 2009 11:02 am
by Bee-Ant
Huh?just say that you are lazy to find it...
Its done with animation,but im just curious with the code..
angle+=10;directional_velocity=10; is for circle...but what about an elips?

Re: Finding a random point on a circle

PostPosted: Tue Apr 21, 2009 6:30 pm
by Fuzzy
Maybe I did not understand what you want..

Now that I have slept I think you want to do the same thing with an ellipse? If so, instead of d you will need another variable. Two radius will work.

Re: Finding a random point on a circle

PostPosted: Wed Apr 22, 2009 3:42 am
by Bee-Ant
I didnt ask to draw an elips,but make an elips movement.

Re: Finding a random point on a circle

PostPosted: Mon Apr 27, 2009 4:21 pm
by Kalladdolf
Then move the center actor. Depending on the i value of the actor that is supposed to make the ellipse movement.

Re: Finding a random point on a circle

PostPosted: Mon Apr 27, 2009 5:08 pm
by pyrometal
This may be helpful to you guys then! I made a quick example code for you to use if you want! It took me about 5 minutes make and its really simple.
elipse_move.zip
Elliptical movement demo
(903 Bytes) Downloaded 141 times


Have a good one!

--pyro