Hi there,
I have an image in the center of my stage in Adobe Animate...... it looks like this....
I have used the following code to create a Blob (which I will hide) to create a circuit.
const grid=new Grid();
aviaun_p2
.sca(.7)
.center()
.drag()
const data = [[2.7,-0.1,0,0,-50,0,50,0],[559.3,-21.3,0,0,0,-50,0,50],[6,224.6,0,0,50,0,-50,0],[-476,-14.7,0,0,0,50,0,-50]];
const path = new Blob({
points:data,
onTop:false,
// interactive:false, // to make path not editable
stickColor:light
}).center();
path.visible = true;
// new TransformManager(path, "drag");
// path.getPoints(true);
aviaun_p2
.sca(.7)
.center()
.centerReg()
.animate({
// see https://zimjs.com/nio for more demos
props:{path:path, orient:true, flip:true, zoom:[.2,1.2]}, // extra:{outputProp:"scale", outputMin:.2, outputMax:1.2}},
time:6,
ease:"linear",
loop:false,
rewind:false,
drag:true,
startPaused:false
});
How do I get the starting point of the Blob to be at the point where the picture is in the center of the stage. I'm trying to get the plane to fly off into the distance then come back to its starting point in the center of the stage.
Any help would be great! Thank you
Rod