Actionscript 3 如何使用;动议";在Flash朋克?
我知道这很过时。但我想知道如何使用flashpunk运动类(运动、线性化、循环化等)以及如何将其应用于实体。我到处找过,但似乎没有人写过Actionscript 3 如何使用;动议";在Flash朋克?,actionscript-3,motion,Actionscript 3,Motion,我知道这很过时。但我想知道如何使用flashpunk运动类(运动、线性化、循环化等)以及如何将其应用于实体。我到处找过,但似乎没有人写过 谢谢。以下是使用循环的示例: // Create a new Circular Motion var motion :CircularMotion = new CircularMotion(); // Set the motion properties motion.setMotion(100, // centerX 100, //cente
谢谢。以下是使用循环的示例:
// Create a new Circular Motion
var motion :CircularMotion = new CircularMotion();
// Set the motion properties
motion.setMotion(100, // centerX
100, //centerY
50, //angle
90, //start angle
true, //is motion clockwise
20); //motion duration
// The object we would like to tween
motion.object = this;
// Begin the motion
addTween(motion, true);