翻转一个实例(Flip an instance)

编程入门 行业动态 更新时间:2024-10-10 23:16:12
翻转一个实例(Flip an instance)

我到处搜索,从来没有找到我想要的,尽管它很简单。 我只是想在ActionScript中垂直和水平地翻转一个实例。 我试过把宽度乘以-1,但它什么也没做。 我已经研究过转换,但无济于事。

I've searched everywhere and never found what I was looking for, simple as it is. I just want to flip an instance vertically and horizontally in ActionScript. I've tried multiplying the width by -1, but it didn't do anything at all. I've looked into transformations but to no avail either.

最满意答案

将对象的scaleX / scaleY属性设置为-1

Set the object's scaleX/scaleY property to -1

更多推荐

本文发布于:2023-08-04 11:41:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1413888.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:实例   Flip   instance

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!