MMF2Circles with Trigonometry\K:\Users\Neil\Desktop\Personal Website\working\USING THIS STUFF\examples\orbit_an_object.mfa4(@0cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc6֗cc56c55cՋ5dcc7dscc7dccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc5ccc֚cccccccՋccdc5ccccՋcc56cc5cccccccccccccc55ccccc5ccccccccccccccccccccccccccccccccccc5cccccccccccccccc5ccccccccccccccccccccccccccccccccccccdccccccccccccccccccccdccccccccc7dccccccdc5cc5ccccc7dc5c5cdc5cc7d5Ջcdcc5ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccZY $#W 51uO ~% ,;@= /&{m?S 5#P +*S}D 1U4_ Mk"8X )Th{> ){~L3jخvQ) 8WeO1  $&''&"  xAxAxAx㐂pppX$Ү0QqMAxhHÀiUUuUax`〆4YY8u$hu8U488puUQӎ0Ӽ<<$`axMUm)s͞c  `[  q= P2pO-AhppqmEumx4QӮqܝ9u|cJ :F!%1Jcu|ܝu|cJ1%)BP[l|9|lP[B)%A) :Jp[lu|lp[J :) %)K:JP[cP[JK:)% A%) :BJJJB :)%  %))1 :1))%A A%F!%  AA  x !||;|!|P[|!| u9 P[P[|!| 9׽ ;|!| IJ ;|!| cy ;|!| AZ ;|!| sA;|!|]{;|!|Q!;|!|E)Z|!|uB1|!|9{׽P[|!|e)ccccccc&cZ#|l%"TahomaI,,,Boldar. ?$.-make_particle2$  d 2L h .make_particleh @%|l%"TahomaI,,,Boldar A&  ' B' /Rems %Circles and Orbits Using Trigonometry Neil Butcher 2011At the start of the frame, set the text of the edit boxes to show the default values as defined by the alterable values of the "Center" object. Then activate the group "Create Particle 1". This group runs through a fast loop to create as many particles as specified in the "How Many" edit box. As it creates the particles, it sets their position in orbit based on how many particles are being created.When you click the Update Particles button, set the values in the "Center" object to what was entered into the edit boxes, and then destroy any particles before activating the group to create the updated particles.The alterable value "angle_degrees" is what tells each particle where to be positioned on the circumference of the orbit. Since there are 360 degrees in a circle, this event makes the value wrap around from 360 to 0.This event uses the sine and cosine formulas to set the X and Y position of the particle to the correct values along the circumference of the orbit based on the alterable values of the "Center" object. Since the position around the orbit is determined by the angle_degrees value of the particle, adding the speed value to this will move the particle around the orbit that many degrees at a time.zThis first event just starts the loop as many times as specified by the alterable value "how_many" in the "Center" object.pEach time this loop runs through, it creates a particle offscreen (since it's position will be updated by the above events) and then sets the angle_degrees of the particle based on how many particles are being created. This is figured by taking 360 divided by the number of particles, times the loop index. This will evenly space the particles along the circumference.rThis event will run as soon as the loop is done. It deactivates this group, since it no longer needs to be active.'This example works by using basic sine and cosine formulas. The number of particles, the speed, and the radius values are all stored as alterable values in the "Center" object, but the particle object has the alterable value "angle_degrees" so that each particle instance can have its own value.EvOb  particle 1Sprite CenterSpritetitleText descriptionText how_many_entry00zE !update0ntB text2Text text3Text text1Text  radius_entry00zE  speed_entry00zEEvEd ! EvTsEvLsEvCs,!DNE!,#&'2)08 ACHK<@DHT`\dlv) #default#itDz~)com.clickteam.runtime;com.yourcompany.yourapplication