简体   繁体   中英

How can I change the bounds to a movieclip

我正在使用starling,并且导出了动画片段的png序列,其宽度为762,高度为992。但是,动画片段的实际宽度和高度为(184,134)...它的高度和高度为(762,992)...我该如何将动画片段的边界更改为(184,134)...因为它使我的碰撞检测不起作用了...我对getbounds( )到今天为止,但我已经尝试了bounds.setTo()并尝试通过更改bounds.width / and和height ...任何帮助和见解,

You can try adding a mask. Add this movie clip inside another, add new layer, add a rectangle with desired dimensions, and make it mask. Then try and export it again ...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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