Finding a random point on a circle

You must understand the Game Editor concepts, before post here.

Re: Finding a random point on a circle

Postby Bee-Ant » Mon Apr 20, 2009 4:25 pm

Fuz, code to make elips move please...
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Finding a random point on a circle

Postby Fuzzy » Tue Apr 21, 2009 7:47 am

Just move the actor that draws it.
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Re: Finding a random point on a circle

Postby Bee-Ant » Tue Apr 21, 2009 11:02 am

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?
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Finding a random point on a circle

Postby Fuzzy » Tue Apr 21, 2009 6:30 pm

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.
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Re: Finding a random point on a circle

Postby Bee-Ant » Wed Apr 22, 2009 3:42 am

I didnt ask to draw an elips,but make an elips movement.
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Finding a random point on a circle

Postby Kalladdolf » Mon Apr 27, 2009 4:21 pm

Then move the center actor. Depending on the i value of the actor that is supposed to make the ellipse movement.
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: Finding a random point on a circle

Postby pyrometal » Mon Apr 27, 2009 5:08 pm

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
SPRITE WARRIOR:
Free, open-source & crossplatform pixel art editor (currently under construction).
User avatar
pyrometal
 
Posts: 706
Joined: Wed Nov 28, 2007 4:07 am
Location: Kingston, ON, Canada
Score: 86 Give a positive score

Previous

Return to Advanced Topics

Who is online

Users browsing this forum: No registered users and 1 guest