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

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 once per month until cancelled

  • Billed once per year, 2 times

Buy Now




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!