Role Playing Games Tutorial with Sprite Kit and Swift 3 - Part 8

Speaking to the NPC's by Adding SKLabelNodes within a Camera

Role Playing Games Tutorial with Swift and Sprite Kit - Speaking to the NPC
In this Swift 3 / Sprite Kit video tutorial we'll add two SKLabelNodes as children of a tracking camera in the scene. The camera will follow the player, and the SKLabelNodes will act as some initial GUI. When a player contacts an NPC, their initial speech text or reminder text will be displayed in the labels. So you'll see how to randomly pick from the Initial Speech or Reminder Speech arrays (stored in the property list) then display that in the labels. Because SKLabelNodes do not support multiple lines of text, you'll learn how to break apart a string into multiple lines (and avoid splitting up words in the middle).

Can’t see the video? Subscribe!…

  • Billed monthly until cancelled

  • Billed yearly until cancelled

Buy Now