Here’s a sample code. If the sound plays at each isShake, why it’s not the same with transition.to (same way on simulator or device)?
Thanks for feedback.
function shake:accelerometer(e)
if(e.isShake == true) then
transition.to(t1, {time=1000, rotation = 360}) --plays only one time at the first isShake (why?)
media.playEventSound(sound ) --plays at each isShake, ok
end
end
It’s not rotating to 360 degrees after the first event because it already is at 360 degrees. You need to set it back to 0 to continue or keep going forward another 360 degrees from it’s present rotation. [import]uid: 11393 topic_id: 4673 reply_id: 14785[/import]