2011-08-08, 22:25
I have an image which i want to rotate around its own center x axis.
However i dont get it.
this is my code:
If i change "rotatex" with "rotatey" i get a perfect 360 rotation around the image own center axis. But with rotatex it seems to rotate around the bottom of my image, no matter what i do.
I have also tried to play around with the camera control but without any luck.
Is it a bug ? or am i just slow ?
It's easy to reproduce with the code i given above, just make sure your image is in the center y axis of your screen and
replace rotatex with rotatey
However i dont get it.
this is my code:
Code:
<control type="image">
<posx>-4</posx>
<posy>480</posy>
<width>1319</width>
<texture>home/HomeBarBase.png</texture>
<animation type="WindowOpen">
<effect type="rotatex" start="360" end="0" center="640,0" time="1000" delay="200"/> <!-- tween="back" easing="out" -->
</animation>
</control>
If i change "rotatex" with "rotatey" i get a perfect 360 rotation around the image own center axis. But with rotatex it seems to rotate around the bottom of my image, no matter what i do.
I have also tried to play around with the camera control but without any luck.
Is it a bug ? or am i just slow ?
It's easy to reproduce with the code i given above, just make sure your image is in the center y axis of your screen and
replace rotatex with rotatey