简体   繁体   English

影片剪辑在ActionScript 3.0中的放置点

[英]placement point of a movieclip in actionscript 3.0

I've import a jpeg into my flash library and modify it to movie clip. 我已将jpeg导入到我的Flash库中,并将其修改为影片剪辑。 Now I have a movie clip called as "enemyShip". 现在,我有一个名为“ enemyShip”的电影剪辑。 You can see it here : http://prntscr.com/2porvt 您可以在这里看到它: http : //prntscr.com/2porvt

I set the dimensions of it : 我设置它的尺寸:

enemyShip.height=30;
enemyShip.width=40; 

I want to know that when I write enemyShip.x=50; 我想知道的是,当我写enemyShip.x=50; which point of the movie clip is exactly fitted into 50th pixel. 影片剪辑的哪个点正好适合第50个像素。 Is there anyone to help me ? 有没有人可以帮助我?

I believe it would be the movieclip's registration point. 我相信这将是动画片段的注册点。 Or you can think of it as the movieclip's origin. 或者,您可以将其视为动画片段的起源。 In your screenshot, it would be the little + sign. 在您的屏幕截图中,它将是小号+。 To line up your graphic, you'd need to go in to it and adjust it as needed. 要对齐图形,您需要进入并根据需要进行调整。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM