Object Rotation (SOLVED)

I need some help from you guys…i want a gameobject on my game to be rotate 180 degrees(i preferably put it in the update function so that it makes some animation while rotating)…i check some sample in the internet to get some idea but i always failed and cannot get the result that i wanted…so i have no choice but to get some help from some professional out there… :’) thanks in advance!

1 Like

The below code works for me in update function :

go.animate(“.”, “euler.z”, go.PLAYBACK_ONCE_FORWARD, 180, go.EASING_LINEAR, SPEED)

Not sure if it matches with your logic (SPEED should be your number e.g 0.5).

2 Likes

thanks!..ill give it a try…

it actually a bit close to my game logic…thanks!..now what i need to do is manipulate it to fit in my game…and i think i can now do it by myself…thanks for your help!

3 Likes