>
>>How do I write my program?
>
>Ok, let *me* be a bit more specific ^_^


Kerry made some good points about how to go about learning to 
program, but I think that Chaiya gave enough hints as to what she's 
trying to do. The article at 
http://www.lovely.clara.net/crop_circles_sacredgeo.html is 
interesting.

It's a bit hard to know what is being asked, because the English is a 
little bit wrong (even the word "sacred" is written as "scred"). My 
guess though is that the idea is to allow people to easily draw crop 
circles that comply with the sacred geometry rules.

There's so many different ways of doing this kind of thing. One way 
would be to use trails, and then move a bitmap around in a circle, 
but you need to know which circle the user should be moving. You can 
do that by seeing how far away the circles are, and then manipulate 
to nearest one.

Here's some quickly thrown together Lingo that does a couple of those 
things (the movie is at 
http://staging.funnygarbage.com/staff/colin/cropcircles.dir):



on exitFrame me
   go the frame
end

on mousedown
   d = the maxinteger
   cl = the clickloc
   x = cl[1]
   y = cl[2]
   closest = 0
   repeat with a = 1 to 6
     dx = x - sprite(a).loch
     dy = y - sprite(a).locv
     thisdistance = (dx*dx+dy*dy)
     if thisdistance < d then
       closest = a
       d = thisdistance
     end if
   end repeat 
   if closest = 0 then exit
   sx = sprite(closest).loch
   sy = sprite(closest).locv
   repeat while the mousedown
     ml = the mouseloc
     rotangle = atan(sx-ml[1],sy-ml[2]) * 180/pi
     sprite(closest).rotation = -rotangle
     updatestage
   end repeat
end
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to