Return to Snippet

Revision: 67058
at August 5, 2014 23:59 by TheRabbitFlash


Initial Code
// Center of point by X and Y
var centerX : Number = 150;
var centerY : Number = 150;

// Radius (how far away your object will fly near your center)
var radius : Number = 50;

// Change angle to move by circle path
var angle : Number = 90;

// img it's display object
img.x = centerX + radius * Math.cos(angle);
img.y = centerY + radius * Math.sin(angle);

Initial URL


Initial Description
Using this code you can move your object along radius

Initial Title
Moving object around center

Initial Tags


Initial Language
ActionScript 3