Wednesday Discount - Lifetime Access for $20!!!! - Click Here!

Changing Pages Events – Story Tellers iOS Starter Kit Documentation

Events for Changing and Transitioning Pages

Story Tellers iOS Starter Kit 2 Documentation

  • OpenPage – the value will be the item in the Pages dictionary (and corresponding .sks file) of the scene to open.

pages transition SKScene 1

  • Continue – No value needed, this will make the Scene change to the last viewed Page (from previously using the app).

pages transition SKScene 2

  • NextPage – The value should equal the name of an Array in the PageOrder dictionary. For example, “Chapter1”. The kit will choose the next page to go to by finding the current page in the page order and going to the next one.

pages transition SKScene 3

  • PreviousPage –  The value should equal the name of an Array in the PageOrder dictionary. For example, “Chapter1”. The kit will choose the previous page to go to by finding the current page in the page order and going to the one before it.
  • OpenRandomPage – The value should equal the name of an Array in the Pools dictionary. This will pick a random item from the array and go to that page.

pages transition SKScene 4

  • Transition – Enter a value of either CrossFade, DoorsCloseHorizontal, DoorsCloseVertical, DoorsOpenHorizontal, DoorsOpenVertical, DoorWay, FadeWithColor, Fade, FlipHorizontal, FlipVertical, MoveInWithDirection, PushWithDirection, RevealWithDirection. This will adjust the value for the next transition.
  • TransitionTime  – Set a number value to specify the duration for the next page transition.
  • TransitionDelay  – Set a number value to specify the delay to occur before the next transition. If you set 5 and then call an OpenPage event, the transition will be delayed 5 seconds.
  • TransitionColor  – If the transition uses the color property, you can specify it by using a hex value or some generic colors like Red, Orange, Yellow, Green, Blue, Purple, Magenta, Cyan, Brown, Grey (or Gray), Black, White
  • TransitionDirection  – If the transition uses the direction property, you can specify it here using Up, Down, Left or Right

Note: these transition settings can all be set in the Pages > Settings dictionary.

 

 

 

 




Know what an affiliate program is? You make money just by sharing links to our site! Win. Win.

Earn when you refer any buyer here! 30 day tracking. Commissions are 33%-50% and recur on subscription products!