From the course: Apple watchOS App Development: Advanced APIs

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Add a SpriteKit scene

Add a SpriteKit scene

From the course: Apple watchOS App Development: Advanced APIs

Start my 1-month free trial

Add a SpriteKit scene

- [Instructor] Animation images are a sequence of images you make, and then add them to an image. Let's add an animated pizza image when we order a pizza. You'll find in the downloads folder and image sequence I made with an animation app. Go to the code, stop the apps. Get rid of the console. And go to assets dot xc assets. Bring up your exercise files, and you'll find pizza slice animation. Select all the pizza slices. And drag them into the assets folder. Now notice something about the name. They all have the first name the same. So they all have pizza slice, and then they have a sequence number after them. The number cannot have any leading zeros, so instead of zero one, you have to have one, if it's zero one zero, you should have one zero, otherwise this won't work. Now, let's go to interface dot storyboard, and add an image. I'm going to go to navigation for a bit, and bring up attributes. And here's an image, I'm going to drag that in. And I'm going to put that vertically in…

Contents