Attached to a sprite it will move the sprite on a elliptical Path with your
coordinates to adjust the elliptical Path and steps
-- copywrite christian krauter
-- free to use for all regular MediaMacros visitors
-- if you have any comments pls email me
-- christian@simplicityhq.com
on getPropertyDescriptionList me
list = [:]
addProp list, #pCenterX, [#comment:"Center x", #format: #integer, #default:(the stageRight - the stageLeft)/2]
addProp list, #pCenterY, [#comment: "Center y", #format: #integer,#default:(the stageBottom - the stageTop)/2]
addProp list, #pAxisX, [#comment: "Radius x", #format: #integer,#default:(the stageRight - the stageLeft)/4]
addProp list, #pAxisY, [#comment: "Radius y", #format: #integer,#default:(the stageBottom - the stageTop)/4]
addProp list, #pSteps, [#comment: "Steps per rotation", #format: #integer,#default: 30]
return list
end
on beginSprite me
pStepSize = (2 * pi) / pSteps
pTheta = 0
end
on exitFrame me
x = pAxisX * sin(pTheta) + pCenterX
y = pAxisY * cos(pTheta) + pCenterY
sprite(me.spriteNum).loc = point (x, y)
pTheta = pTheta + pStepSize
end
Contact
MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA