Swift and Sprite Kit Control Systems Index

    Login               Join               Free user account          





Swift and Sprite Kit Control Systems

In this series of videos we will be exploring ALL sorts of ways to control characters in your game. These lessons will each stand on their own merit, so you don't have to muscle through a lot of previous videos to implement the type of control system you're most interested in. So we'll look at the simplest of movements, to virtual controls pads to using the accelerometer and so on.

Created by: Justin

😍 0   👍 0   😐 0




Get full access...

Subscribe for Access...


See options...

Yearly subscribers get access to everything: Tutorials, Kits, Game Art, and website hosting.



Lifetime Membership...



This option gives you member access for LIFE! Tutorials, kits, game art, & more. It's all yours!

Purchase just this...



Get lifetime access to this course / product. 95% of the sale price goes to the author! Did you know all members are also content creators? Find out more.





Section 1

Tap to Move Controls using Swift and Sprite Kit

In these videos we will look at simple tap to move controls.



Swift 2.2 and Swift 2.0 Notes

Login to Mark Progress

Control Systems Project – Touch to Move

Login to Mark Progress

How to Tap Relative to the Character to Move

Login to Mark Progress

Control Systems Project – Touch to Move with SKActions from Point A then to Point B

Login to Mark Progress

Smooth Movements with SKActions

Login to Mark Progress

SKActions (continued) Moving to Point A, then to Point B

Login to Mark Progress


Section 2

Making Objects Follow a Path

In these video tutorials we will discuss how to make a sprite follow a path. This could be useful for tower defense style games or classic-style arcade games like Space Invaders. And believe it or not, Sprite Kit actually has an SKAction specifically for following a path!



Follow Path Project Files

Login to Mark Progress

Make an Object Follow a Path with SKActions

Login to Mark Progress

Make Multiple Objects Follow a Path (Centipede style)

Login to Mark Progress


Section 3

Using the Accelerometer to Control Movement

These tutorials will focus on using the Accelerometer with Swift and Sprite Kit to control a character (or do things like balance / roll a marble).



Accelerometer Project 1 Files

Login to Mark Progress

Accelerometer Basics in Swift

Login to Mark Progress

Accelerometer Project 2 Files (Movement on both X and Y)

Login to Mark Progress

Accelerometer on Both X and Y in Swift

Login to Mark Progress


Section 4

Gestures Recognizers

These video tutorials will look at how to use gesture recognizers with Swift and Sprite Kit. We will start off though by looking at how to animate textures (image sequences) using a .atlas folder in Xcode. Tap gestures will trigger the animation. We will then create a project where a ship spins around using the rotation gesture, and aims toward a target that is also rotated in line with it



Gestures Recognizers – Project Files

Login to Mark Progress

Animated Textures – Prequel to using Gesture Recognizers

Login to Mark Progress

Taps and Rotation Gesture Recognizer Tutorial

Login to Mark Progress

Rotating and Moving a Ship and Target

Login to Mark Progress

Swipe Gestures and Rotating Based on Degrees

Login to Mark Progress

Pan Gestures vs touchesMoved and convertPointFromView

Login to Mark Progress

Pinch and Long Press Gesture Recognizers

Login to Mark Progress


Section 5

Virtual Joysticks

These video tutorials will look at how to create a virtual joystick with Swift and Sprite Kit.



Virtual Joystick – Project 1 (the project after the next two videos)

Login to Mark Progress

Initial Setup of a Virtual JoyStick with Swift and SpriteKit

Login to Mark Progress

Top Down Movements and Speed Based Controls using a Virtual Joystick

Login to Mark Progress


Section 6

Virtual Joystick in a Side Scroller Style Level

In these iOS video tutorials we will continue working with our virtual joystick from the previous section, and extend the functionality to a side-scroller style level. This will involve creating a physics based Sprite Kit world, with classes for the Player and Object. We will fine tune the level of player control with each video.



Virtual Joystick – Project 2 – Side Scroller Style (the project after the first three videos)

Login to Mark Progress

Modifying the Scene for Side Scroller Play and Creating the Player Class

Login to Mark Progress

Creating an Object Class from SKNode and Using a Dictionary to Initialize It

Login to Mark Progress

Using the SKPhysicsContactDelegate to detect contact between Player and Object

Login to Mark Progress

Virtual Joystick – Project 3 – Side Scroller Style (the project after adding Walk, Idle and Attack actions)

Login to Mark Progress

Walking, Idling and Attacking with Joystick Controls Tutorial

Login to Mark Progress

Virtual Joystick – Project 4 – Side Scroller Style (Jumping Added / Finished)

Login to Mark Progress

Jumping with Joystick Controls Introduction

Login to Mark Progress

Jumping with Joystick Controls Tutorial

Login to Mark Progress


Section 7

Aim and Release (Sling Shot style) Controls

In this iOS video tutorial we will modify the previous Joystick Project (Project #2, the first one with a Side Scroller setup) to sling a character forward from a set position in an aim and release fashion. Ahem, think, Angry Birds. We will also look at how to add the character and platforms into a "worldNode" which will get moved as the character is slung so it doesn't go out of view.



Sling Shot Project

Login to Mark Progress

Sling Shot Style Controls Tutorial

Login to Mark Progress


Section 8

Isometric Controls with a Joystick and Directional Pad

In these two iOS video tutorials we will modify our joystick controls to work with an isometric level and then convert that project to use a virtual directional pad instead.



Isometric Projects (Joystick and Directional Pad)

Login to Mark Progress

Isometric Controls Tutorial

Login to Mark Progress

Isometric Controls Tutorial with a Directional Pad

Login to Mark Progress






Category: Game Development  -   Primary Software: Xcode  -  
Tags:   gestures - recognizer - swift - control - game development - accelerometer - skaction - path - follow -












Free account...

Looks like you aren't logged in. You can sign up for a FREE user account below. No payment info required...