iOS Control Systems with Swift 2 or 1.2 and Sprite Kit

A quick start guide to programming one of the hardest elements of any game, controlling your characters.
4.2 (20 ratings)
Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
284 students enrolled
$19
$25
24% off
Take This Course
  • Lectures 32
  • Length 6.5 hours
  • Skill Level All Levels
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works

Discover

Find online courses made by experts from around the world.

Learn

Take your courses with you and learn anywhere, anytime.

Master

Learn and practice real-world skills and achieve your goals.

About This Course

Published 5/2015 English

Course Description

This seven hour tutorial series has one main aim to it: give you a quick start guide to programming one of the hardest elements of any game, controlling your characters. Most programmers begin a new app by prototyping the controls. It's just a natural starting point for production, and it can be one of the biggest stumbling blocks for new developers. With a dozen example projects and 24 videos, you can start wherever you like and implement any of the control systems below…

  • Accelerometer controls
  • Simple touches, taps and swipes
  • Rotation, pan, pinch, and long press gestures
  • Path-based movements
  • Aim and release slingshot style controls
  • Directional pad controls
  • Virtual joystick controls in a top-down flying game
  • Virtual joystick controls in an isometric-viewed world
  • Virtual joystick controls in a traditional side scroller/ platform world
  • Attacking, jumping and double-jumping with virtual buttons
This series was developed with Swift 1.2 and uses Apple's very own Sprite Kit game engine. While you master the control methods above, you'll also learn the basics of game development: animating texture atlases, creating classes for players and collision objects, working with physics, creating world nodes, and countless other nuggets of know-how for making an awesome game with Xcode.

What are the requirements?

  • Some prior familiarity with Swift or any programming language is preferred
  • Have a Mac with Xcode 6.3 Installed

What am I going to get from this course?

  • Programmably control characters using Swift 1.2 and Sprite Kit
  • Get experience working with many SKActions
  • Make a sprite follow a path.
  • Control objects using the Accelerometer
  • Use every type of gesture recognizer to move or rotate sprites
  • Create a virtual joystick or directional pad to move a side scrolling, top down or isometric character
  • Create an aim and release type world to slingshot a character

What is the target audience?

  • New Xcode programmers focused on game development using a Mac.

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.

Curriculum

Section 1: Tap to Move Controls using Swift and Sprite Kit
Introduction
Preview
00:57
Course Assets for Swift 1.2 through Swift 2.2
Article
How to Tap Relative to the Character to Move
Preview
12:20
Smooth Movements with SKActions
Preview
13:42
SKActions (continued) Moving to Point A, then to Point B
Preview
06:26
Section 2: Making Objects Follow a Path
Make an Object Follow a Path with SKActions
15:07
Make Multiple Objects Follow a Path (Centipede style)
10:08
Section 3: Using the Accelerometer to Control Movement
Accelerometer Basics in Swift
19:26
Accelerometer on Both X and Y in Swift
12:09
Section 4: Gestures Recognizers
Animated Textures - Prequel to using Gesture Recognizers
08:47
Animated Textures (continued)
13:25
Taps and Rotation Gesture Recognizer Tutorial
12:09
Rotating and Moving a Ship and Target
15:22
Swipe Gestures and Rotating Based on Degrees
09:58
Pan Gestures vs touchesMoved and convertPointFromView
11:31
Pinch and Long Press Gesture Recognizers
11:11
Section 5: Virtual Joysticks
Initial Setup of a Virtual JoyStick with Swift and SpriteKit
20:18
Top Down Movements and Speed Based Controls using a Virtual Joystick
18:02
Section 6: Virtual Joystick in a Side Scroller Style Level
Modifying the Scene for Side Scroller Play and Creating the Player Class
12:31
Player Class (continued)
11:48
Creating an Object Class from SKNode and Using a Dictionary to Initialize It
13:38
Object Class (continued)
09:13
Using the SKPhysicsContactDelegate to detect contact between Player and Object
09:38
Walking, Idling and Attacking with Joystick Controls Tutorial
15:26
Walking, Idling and Attacking (Continued)
15:47
Jumping with Joystick Controls Introduction
02:39
Jumping with Joystick Controls Tutorial
17:22
Jumping Continued
18:05
Section 7: Aim and Release Sling Shot Style Controls
Sling Shot Style Controls Tutorial
23:31
Section 8: Isometric Controls with a Joystick and Directional Pad
Isometric Controls Tutorial
08:27
Isometric Controls Tutorial with a Directional Pad
13:21
Article

Feel free to ask any questions, and you might see it get answered with a video!

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Justin Dike, CartoonSmart / Owner / Leader Developer and Instructor

Justin Dike is the founder of CartoonSmart one of the internet's first video training websites. He is a long-time illustrator and animator, focusing mostly on Adobe Flash, and experienced programmer with Swift, Sprite Kit, Actionscript 3, Objective C and Cocos2d. For CartoonSmart he has recorded hundreds of hours of video tutorials and recently published his first full length book titled iOS Programming with Xcode and Cocos2d available in the iBookstore. Justin has also developed many iOS games, including a side scrolling game engine.

Ready to start learning?
Take This Course