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

Adding the NPC to the Scene with Plist Data and Randomly Placing It

Adding the NPC to the Scene with Plist Data
In this Swift 3 / Sprite Kit video tutorial we’ll actually get to add the NPC to the scene. We’ll create a custom class called NonPlayerCharacter, passing some of the dictionary data into it at runtime, and also write a function to place the NPC (or any node) randomly within range of a placeholder SKSpriteNode in the scene.

Can’t see the video? Subscribe!…

  • Billed monthly until cancelled

  • Billed once per year, 2 times

Buy Now



Become part of the CartoonSmart Team with our Affiliate Program

Make recurring money when you refer a subscriber. 30 day tracking. Commissions 33%-50%!


Uh oh, missing your affiliate ID. Create one real quick