when i call like this:
[code]
function moveStar(e)
star[1].rotation =star[1].rotation+ 2
end
Runtime:addEventListener( “enterFrame”, moveStar);
<>
when i call repeatly rotation speed is increase, HOW CAN I RESET ?
[import]uid: 22631 topic_id: 21674 reply_id: 321674[/import]
WauloK
2
You want to stop the rotation or just stop the speedup? [import]uid: 10389 topic_id: 21674 reply_id: 85942[/import]
stop the speedup ! thanks WauloK
[import]uid: 22631 topic_id: 21674 reply_id: 85951[/import]
I’m would recommend the API called:
[lua] object.angularVelocity = 180[/lua]
Then you can call it at some later time and stop the agularVelocity by typing:
[lua] object.angularVelocity = 0[/lua]
Regards,
Jordan Schuetz
Ninja Pig Studios [import]uid: 29181 topic_id: 21674 reply_id: 85978[/import]