ios - How do I keep actions and animations running during a scene transition in swift? -
i have retry button, rotating, when pressed, presents new scene using gameview.presentscene(gamescene, transition: sktransition.fadewithduration(2))
. while transition occurs, rotation stops. aim keep button rotating, until gamescene presented. if helps, done in spritekit based game. appreciated! :-)
set pausesoutgoingscene
property on transition object false.
var transition = sktransition.fadewithduration(2) transition.pausesoutgoingscene = false //transition.pausesincomingscene = false //uncomment if want both animate gameview.presentscene(gamescene, transition: transition )
Comments
Post a Comment