我知道这很过时。但我想知道如何使用flashpunk Motion类(Motion、linearMotion、CircularMotion等)。以及如何将其应用于实体。我到处都找过了,但似乎没有人写过。
谢谢。
发布于 2014-05-10 19:57:02
以下是使用CircularMotion的示例:
// 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);https://stackoverflow.com/questions/16508045
复制相似问题