简体   繁体   中英

Actionscript 2.0 give an object 3D rotation?

I have a function but it doens't work the way i want it to. I want the objects rotation to rotate around the y-axis, so that it looks 3D ish.

_root.HealthBar._rotation._y = angle;

Since you are talking about AS2 and the stage is 2D, there is only one rotation, ie there is no separate rotations for x and y.

All you would do is;

_root.HealthBar._rotation = angle;

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