The Daily Click ::. Forums ::. Klik Coding Help ::. Spore-like Tidepool?
 

Post Reply  Post Oekaki 
 

Posted By Message

vortex2



Registered
  27/05/2002
Points
  1406
21st May, 2006 at 03:40:13 -

Why not command cells that divide over time? The goal would be to save as many as "possible" and eventually evolve by mating with other cells...

 
A bit of insanity with every bite!

vortex2



Registered
  27/05/2002
Points
  1406
21st May, 2006 at 03:41:13 -

and you have to use an extension becuase MMF doesn't support ATan2 directly, you will get errors if you attempt to just use Atan..

 
A bit of insanity with every bite!

Omni



Registered
  28/04/2005
Points
  17
21st May, 2006 at 04:16:29 -

Keep in mind that it is meant to imitate the Tide Pool Phase of Spore, which Will Wright described as a very fluid version of Pac-Man.

And besides, cells divide, not mate, right?

 
Look upon my works, ye Mighty, and dispair!

Omni



Registered
  28/04/2005
Points
  17
21st May, 2006 at 10:12:35 -

What formula would be required to find out the angle from one point to another? AKA if I have a center point, and another point off of it, how can I find out the angle that second point is at from the center of the circle?

 
Look upon my works, ye Mighty, and dispair!

Omni



Registered
  28/04/2005
Points
  17
22nd May, 2006 at 22:19:34 -

I hate to double post, but, I need that formula. I'm trying to bring all of this together into a basic editor, but first I need to know how to do this. (What formula would be required to find out the angle from one point to another?) Anyone?

 
Look upon my works, ye Mighty, and dispair!

vortex2



Registered
  27/05/2002
Points
  1406
22nd May, 2006 at 22:45:19 -

Try

Ang=Atan((Y2-Y)/(X2-X))*(180/3.14159)


 
A bit of insanity with every bite!

Omni



Registered
  28/04/2005
Points
  17
23rd May, 2006 at 06:10:56 -

Thanks vortex, it's almost working, but I'm running into a strange problem.

The exact formula is:
ATan( ( Y( "Mouse Rotator" ) - Y( "Center" ) ) / ( X( "Mouse Rotator" ) - X( "Center" ) ) ) * ( 180 / 3.14159 )

I've eliminated parts of the formula to try to discover the root of the problem, and it's what comes from ATan. The resulting angle is alright if the object is a little to the right above the center. However, when you move along clockwise, eventually it starts to just return a 45 degree angle, and if you bring the object past where the 45 angle should be, it returns 0. Then, when you keep going around, it starts again at the bottom and does the same thing once again clockwise.

Is there something I'm forgetting? Is MMF limited? Or, is it my computer?

Image Edited by the Author.

 
Look upon my works, ye Mighty, and dispair!

vortex2



Registered
  27/05/2002
Points
  1406
23rd May, 2006 at 22:25:22 -

I think it is a fundimental problem with Atan, that is why I said to use Atan2 (which MMF doesn't natively support and so you need an extension). So why not do what I said a few days ago and use the advanced direction object or another maths object that supports getting the angle between two points ^^.

 
A bit of insanity with every bite!
   

Post Reply



 



Advertisement

Worth A Click