# Sprite Kit

**URL:** https://forums.kodeco.com/c/general/sprite-kit/22.md?page=3

[Latest](https://forums.kodeco.com/latest.md) · [Categories](https://forums.kodeco.com/categories.md) · [Tags](https://forums.kodeco.com/tags.md)

**Page:** 4

---

## [Moving a line programatically](https://forums.kodeco.com/t/moving-a-line-programatically/26020)

<div class="topic-metadata">

**Author:** [@koushanejad74](https://forums.kodeco.com/u/koushanejad74)\
**Replies:** 1\
**Last updated:** [May 3, 2017, 9:46pm UTC](https://forums.kodeco.com/t/moving-a-line-programatically/26020 "2017-05-03T21:46:50Z")

</div>

Hi All, I’ve drawn a line using SKShapeNode by setting the path property, how can I change the position of the end points of the line programatically, Creating a new path wouldn’t be desirable, Thanks,

---

## [How To Make a Game Like Flappy Bird, 2nd Vedio](https://forums.kodeco.com/t/how-to-make-a-game-like-flappy-bird-2nd-vedio/28942)

<div class="topic-metadata">

**Author:** [@estelle](https://forums.kodeco.com/u/estelle)\
**Replies:** 0\
**Last updated:** [April 27, 2017, 12:03am UTC](https://forums.kodeco.com/t/how-to-make-a-game-like-flappy-bird-2nd-vedio/28942 "2017-04-27T00:03:44Z")

</div>

Can I know what make the simulator work like this? Also, I noticed that there are “Extra” and “Resources” file under Resources file, can I know where does the “Extra” file come from? Red dot shows in the background i…

---

## [Sprite Kit memory issues](https://forums.kodeco.com/t/sprite-kit-memory-issues/5024)

<div class="topic-metadata">

**Author:** [@gershengoren](https://forums.kodeco.com/u/gershengoren)\
**Replies:** 5\
**Last updated:** [April 8, 2017, 3:32pm UTC](https://forums.kodeco.com/t/sprite-kit-memory-issues/5024 "2017-04-08T15:32:30Z")

</div>

Hello, first of all – thank you for 2D iOS and tvOS Games by Tutorials book – it is really helpfull :slightly\_smiling: So I created a small game with several scenes and facing some memory issues: The first issue I a…

---

## [Best size for sprite kit scene?](https://forums.kodeco.com/t/best-size-for-sprite-kit-scene/28019)

<div class="topic-metadata">

**Author:** [@soggybag](https://forums.kodeco.com/u/soggybag)\
**Replies:** 0\
**Last updated:** [April 5, 2017, 10:58pm UTC](https://forums.kodeco.com/t/best-size-for-sprite-kit-scene/28019 "2017-04-05T22:58:52Z")

</div>

I’m making a game that will run in landscape. When I setup my spritekit scene file what’s best practice for setting the frame size? For example I could set the frame to the size of the iPhone 6 or 7 but these sizes might…

---

## [Apple Pathfinding Example](https://forums.kodeco.com/t/apple-pathfinding-example/24891)

<div class="topic-metadata">

**Author:** [@magonicolas](https://forums.kodeco.com/u/magonicolas)\
**Replies:** 5\
**Last updated:** [April 3, 2017, 10:52pm UTC](https://forums.kodeco.com/t/apple-pathfinding-example/24891 "2017-04-03T22:52:47Z")

</div>

Hi There! I need to create something very similar to Apple Pathfinding example on: GameplayKit Programming Guide: Pathfinding This project lets you specify maze dimension, starting point and end point, it then generates…

---

## [How can I create the waves, like water waves, in game?](https://forums.kodeco.com/t/how-can-i-create-the-waves-like-water-waves-in-game/27217)

<div class="topic-metadata">

**Author:** [@ryuker](https://forums.kodeco.com/u/ryuker)\
**Replies:** 3\
**Last updated:** [March 23, 2017, 2:35am UTC](https://forums.kodeco.com/t/how-can-i-create-the-waves-like-water-waves-in-game/27217 "2017-03-23T02:35:22Z")

</div>

I want to draw sound waves when my character jump. I don’t even know how to create these waves. They have to collision and reflect with the walls and other physical bodies (like so on the picture).

---

## [I have a Spritekit SKPhysics question](https://forums.kodeco.com/t/i-have-a-spritekit-skphysics-question/27066)

<div class="topic-metadata">

**Author:** [@abd1kadir](https://forums.kodeco.com/u/abd1kadir)\
**Replies:** 0\
**Last updated:** [March 10, 2017, 3:54am UTC](https://forums.kodeco.com/t/i-have-a-spritekit-skphysics-question/27066 "2017-03-10T03:54:27Z")

</div>

How can I slide paddles from left to right individually and have the paddle the character jumped on stop while the rest keep sliding? how do I make 4 paddles slowly move to left and right back and forth at the same speed…

---

## [touchesBegan please help!](https://forums.kodeco.com/t/touchesbegan-please-help/26997)

<div class="topic-metadata">

**Author:** [@joeeydubu](https://forums.kodeco.com/u/joeeydubu)\
**Replies:** 0\
**Last updated:** [March 8, 2017, 9:30am UTC](https://forums.kodeco.com/t/touchesbegan-please-help/26997 "2017-03-08T09:30:57Z")

</div>

so I am trying to make my own game and I want to when you die it loads back up the main home screen so they can click play/ options and what not, but I am having trouble getting the touches began to touch the node I want…

---

## [I am trying to set up my game and I can't please help](https://forums.kodeco.com/t/i-am-trying-to-set-up-my-game-and-i-cant-please-help/26427)

<div class="topic-metadata">

**Author:** [@abd1kadir](https://forums.kodeco.com/u/abd1kadir)\
**Replies:** 2\
**Last updated:** [February 21, 2017, 12:51am UTC](https://forums.kodeco.com/t/i-am-trying-to-set-up-my-game-and-i-cant-please-help/26427 "2017-02-21T00:51:20Z")

</div>

in the gameViewController there is an error showing for this line let skView = view as! SKView it is saying Expected ‘)’ in expression list. What does that mean? here is my setup import UIKit import SpriteKit clas…

---

## [Volumetric Lights](https://forums.kodeco.com/t/volumetric-lights/26072)

<div class="topic-metadata">

**Author:** [@vkletsko](https://forums.kodeco.com/u/vkletsko)\
**Replies:** 0\
**Last updated:** [February 10, 2017, 8:14am UTC](https://forums.kodeco.com/t/volumetric-lights/26072 "2017-02-10T08:14:09Z")

</div>

Hi I’m trying to make volumetric light effect. like this example: Could You help me please How can I do this with SpriteKit?

---

## [Looking For An Icon Maker](https://forums.kodeco.com/t/looking-for-an-icon-maker/24561)

<div class="topic-metadata">

**Author:** [@gibo1021](https://forums.kodeco.com/u/gibo1021)\
**Replies:** 3\
**Last updated:** [January 7, 2017, 2:37am UTC](https://forums.kodeco.com/t/looking-for-an-icon-maker/24561 "2017-01-07T02:37:08Z")

</div>

Hello Guys, I am looking for an icon maker kit. If you know something that very recommended, well its really appreciated. I found some icon maker kit, but i need an option so i can compare them, before choosing it. Hav…

---

## [Nested container animation in spritekit tutorial request](https://forums.kodeco.com/t/nested-container-animation-in-spritekit-tutorial-request/24574)

<div class="topic-metadata">

**Author:** [@dkliman](https://forums.kodeco.com/u/dkliman)\
**Replies:** 0\
**Last updated:** [December 28, 2016, 10:28am UTC](https://forums.kodeco.com/t/nested-container-animation-in-spritekit-tutorial-request/24574 "2016-12-28T10:28:13Z")

</div>

could I see some sample code or a tutorial explaining how to make, let’s say, an SKShapeNode of let’s say a hollow box, with let’s say a ball inside, that would obey physics as one object inside another, so if you hit th…

---

## [How to create beveled edges](https://forums.kodeco.com/t/how-to-create-beveled-edges/24280)

<div class="topic-metadata">

**Author:** [@koushanejad74](https://forums.kodeco.com/u/koushanejad74)\
**Replies:** 4\
**Last updated:** [December 20, 2016, 3:00pm UTC](https://forums.kodeco.com/t/how-to-create-beveled-edges/24280 "2016-12-20T15:00:15Z")

</div>

How can I create beveled edges like the one in the attachment using SpriteKit?

---

## [3D Dice in 2D game approach suggestion](https://forums.kodeco.com/t/3d-dice-in-2d-game-approach-suggestion/23861)

<div class="topic-metadata">

**Author:** [@bjhstudios](https://forums.kodeco.com/u/bjhstudios)\
**Replies:** 0\
**Last updated:** [December 7, 2016, 6:31pm UTC](https://forums.kodeco.com/t/3d-dice-in-2d-game-approach-suggestion/23861 "2016-12-07T18:31:50Z")

</div>

Starting to work on a Backgammon game, my first attempt at SpriteKit. I would like to make 3D dice that actually roll on the board, but I’m having some trouble figuring out how to get started on that part. Can anyone su…

---

## [Making a moving background with SKTileMapNode and interacting with the objects with another Sprite](https://forums.kodeco.com/t/making-a-moving-background-with-sktilemapnode-and-interacting-with-the-objects-with-another-sprite/23007)

<div class="topic-metadata">

**Author:** [@gerard23](https://forums.kodeco.com/u/gerard23)\
**Replies:** 0\
**Last updated:** [November 23, 2016, 7:43am UTC](https://forums.kodeco.com/t/making-a-moving-background-with-sktilemapnode-and-interacting-with-the-objects-with-another-sprite/23007 "2016-11-23T07:43:52Z")

</div>

Hi, I’m looking at buying the books 2d and 3d programming for swift though I was wondering if this topic is covered in the tutorials? Regards Ged

---

## [Forever move and resize sprites (animate city background)](https://forums.kodeco.com/t/forever-move-and-resize-sprites-animate-city-background/22705)

<div class="topic-metadata">

**Author:** [@aeon](https://forums.kodeco.com/u/aeon)\
**Replies:** 0\
**Last updated:** [November 15, 2016, 7:15pm UTC](https://forums.kodeco.com/t/forever-move-and-resize-sprites-animate-city-background/22705 "2016-11-15T19:15:34Z")

</div>

Hello everyone! I’m developing a game and trying to create animated city background. I want to make an illusion that houses are moving far away(by srinking them). So, what I need is just move and shrink node to center, …

---

## [SpriteKit Backgrounds](https://forums.kodeco.com/t/spritekit-backgrounds/12103)

<div class="topic-metadata">

**Author:** [@dukeobass](https://forums.kodeco.com/u/dukeobass)\
**Replies:** 6\
**Last updated:** [November 6, 2016, 12:16pm UTC](https://forums.kodeco.com/t/spritekit-backgrounds/12103 "2016-11-06T12:16:30Z")

</div>

I want to develop a Universal Device multiple part background for a SpriteKit game. The question I have has to do with art board sizes for each. What dimension would my art boards have to be in order to work on a Univers…

---

## [Move SKSpriteNode around](https://forums.kodeco.com/t/move-skspritenode-around/21735)

<div class="topic-metadata">

**Author:** [@007fred50](https://forums.kodeco.com/u/007fred50)\
**Replies:** 0\
**Last updated:** [October 26, 2016, 2:14pm UTC](https://forums.kodeco.com/t/move-skspritenode-around/21735 "2016-10-26T14:14:58Z")

</div>

what i will have it to work… it move from one directory to another without jump to Z and Y var player: SKSpriteNode? override func didMove(to view: SKView) { self.anchorPoint = CGPoint(x: 0.5, y: 0.5) …

---

## [Zombie Conga / stop zombie](https://forums.kodeco.com/t/zombie-conga-stop-zombie/21734)

<div class="topic-metadata">

**Author:** [@007fred50](https://forums.kodeco.com/u/007fred50)\
**Replies:** 0\
**Last updated:** [October 26, 2016, 1:46pm UTC](https://forums.kodeco.com/t/zombie-conga-stop-zombie/21734 "2016-10-26T13:46:17Z")

</div>

Hello, how can i stop that zombie?? from runing. 2D\_Apple\_Games\_by\_Tutorials\_2.0 on page 79

---

## [Sprite File Suffixes](https://forums.kodeco.com/t/sprite-file-suffixes/21644)

<div class="topic-metadata">

**Author:** [@melvinbg](https://forums.kodeco.com/u/melvinbg)\
**Replies:** 0\
**Last updated:** [October 25, 2016, 2:25am UTC](https://forums.kodeco.com/t/sprite-file-suffixes/21644 "2016-10-25T02:25:47Z")

</div>

Does anyone know where to find the suffix for sprite files for all iPhone products? Like if I wanted to make sprites specifically for the iPhone 7 and iPhone 7 Plus, what suffix do I use for each of them? Thanks in adva…

---

## [Bug Mr Pig book 3D Apple Game tutorial](https://forums.kodeco.com/t/bug-mr-pig-book-3d-apple-game-tutorial/21369)

<div class="topic-metadata">

**Author:** [@gui](https://forums.kodeco.com/u/gui)\
**Replies:** 0\
**Last updated:** [October 18, 2016, 7:07pm UTC](https://forums.kodeco.com/t/bug-mr-pig-book-3d-apple-game-tutorial/21369 "2016-10-18T19:07:42Z")

</div>

Hello, I bought the book 3D Apple Game tutorial today and when I run Mr Pig on my iPhone 7, I have this error : /BuildRoot/Library/Caches/com.apple.xbs/Sources/Metal/Metal-85.83/ToolsLayers/Debug/MTLDebugRenderCommandEn…

---

## [Override init(size: CGSize)](https://forums.kodeco.com/t/override-init-size-cgsize/21265)

<div class="topic-metadata">

**Author:** [@007fred50](https://forums.kodeco.com/u/007fred50)\
**Replies:** 1\
**Last updated:** [October 17, 2016, 12:43pm UTC](https://forums.kodeco.com/t/override-init-size-cgsize/21265 "2016-10-17T12:43:20Z")

</div>

Hello, I got error on this here… override init(size: CGSize) try to write it down from the PDF. (2D\_Apple\_Games\_by\_Tutorials\_2.0) what can i do? Best Regards Frederik L. Frandsen

---

## [Spritekit Image Resolution Sizes](https://forums.kodeco.com/t/spritekit-image-resolution-sizes/21104)

<div class="topic-metadata">

**Author:** [@melvinbg](https://forums.kodeco.com/u/melvinbg)\
**Replies:** 0\
**Last updated:** [October 12, 2016, 8:36pm UTC](https://forums.kodeco.com/t/spritekit-image-resolution-sizes/21104 "2016-10-12T20:36:15Z")

</div>

With Xcode, every since the IPhone 7 was released, the IPhone 4 has been removed from the simulator completely. So with that, I was wondering if there is a source that lists all the updated resolution sizes for all the I…

---

## [SKTiled - Tiled parser for SpriteKit/Swift](https://forums.kodeco.com/t/sktiled-tiled-parser-for-spritekit-swift/20983)

<div class="topic-metadata">

**Author:** [@mfessenden](https://forums.kodeco.com/u/mfessenden)\
**Replies:** 0\
**Last updated:** [October 10, 2016, 11:25pm UTC](https://forums.kodeco.com/t/sktiled-tiled-parser-for-spritekit-swift/20983 "2016-10-10T23:25:37Z")

</div>

Just a quick announcement that I’ve released a new Tiled parser for Swift/SpriteKit. This began life as an XML parser for a game I worked on, and I’ve been steadily updating it whenever I’ve had down cycles. I’ve decided…

---

## [Xcode Simulator](https://forums.kodeco.com/t/xcode-simulator/20798)

<div class="topic-metadata">

**Author:** [@melvinbg](https://forums.kodeco.com/u/melvinbg)\
**Replies:** 3\
**Last updated:** [October 7, 2016, 3:56am UTC](https://forums.kodeco.com/t/xcode-simulator/20798 "2016-10-07T03:56:19Z")

</div>

Every time I run the simulator in Xcode, it always pops up without showing its whole body on the screen at once. Which means I would have to scroll up and down to see the full screen. My question is: Where do I go to cha…

---

## [Attemped to add a SKNode which already has a parent](https://forums.kodeco.com/t/attemped-to-add-a-sknode-which-already-has-a-parent/19937)

<div class="topic-metadata">

**Author:** [@webgood](https://forums.kodeco.com/u/webgood)\
**Replies:** 4\
**Last updated:** [September 20, 2016, 12:59pm UTC](https://forums.kodeco.com/t/attemped-to-add-a-sknode-which-already-has-a-parent/19937 "2016-09-20T12:59:24Z")

</div>

Hi, In my game I’ve created some sks files with complicated animations, I’ve created custom classes for them. Then I insert them in GameScene.sks. I need to create some duplicated sprites (falling down from the top) an…

---

## [Move incrementally a spritekitnode along path?](https://forums.kodeco.com/t/move-incrementally-a-spritekitnode-along-path/18486)

<div class="topic-metadata">

**Author:** [@zullo91](https://forums.kodeco.com/u/zullo91)\
**Replies:** 5\
**Last updated:** [August 29, 2016, 6:19am UTC](https://forums.kodeco.com/t/move-incrementally-a-spritekitnode-along-path/18486 "2016-08-29T06:19:02Z")

</div>

Hi i’m currently using Swift 2.0 and SpriteKit Framework to build a small 2D videogame. I would develop a starship incrementally moving along a predefined path. The velocity and direction of the starship is determined f…

---

## [Detect touches inside the texture of an irregularly shaped Sprite](https://forums.kodeco.com/t/detect-touches-inside-the-texture-of-an-irregularly-shaped-sprite/18427)

<div class="topic-metadata">

**Author:** [@grumbler](https://forums.kodeco.com/u/grumbler)\
**Replies:** 2\
**Last updated:** [August 15, 2016, 4:33pm UTC](https://forums.kodeco.com/t/detect-touches-inside-the-texture-of-an-irregularly-shaped-sprite/18427 "2016-08-15T16:33:20Z")

</div>

What is a good technique to detect touches within the texture of a sprite that is not a rectangle? Setting userInteractionEnabled to true enables touches on the bounding box of the sprite, but I only want touches to regi…

---

## [Tile Map with big/tall things like Trees etc](https://forums.kodeco.com/t/tile-map-with-big-tall-things-like-trees-etc/18246)

<div class="topic-metadata">

**Author:** [@marxfr](https://forums.kodeco.com/u/marxfr)\
**Replies:** 0\
**Last updated:** [August 8, 2016, 11:10am UTC](https://forums.kodeco.com/t/tile-map-with-big-tall-things-like-trees-etc/18246 "2016-08-08T11:10:26Z")

</div>

Hi, I’ve downloaded some tiles from the internet, and some of those tiles from big trees or mushrooms. So you can basically create really big structures by putting the right tiles in into the right position. Trying to…

---

## [How would I spawn a function of different enemies at scores 10, 25 , 40](https://forums.kodeco.com/t/how-would-i-spawn-a-function-of-different-enemies-at-scores-10-25-40/18108)

<div class="topic-metadata">

**Author:** [@zalubski](https://forums.kodeco.com/u/zalubski)\
**Replies:** 1\
**Last updated:** [August 4, 2016, 10:19pm UTC](https://forums.kodeco.com/t/how-would-i-spawn-a-function-of-different-enemies-at-scores-10-25-40/18108 "2016-08-04T22:19:42Z")

</div>

How would I spawn a function of a same enemy at scores 0-10, 11-25 ,26-40 as well as spawn enemies from as bonus at score 23, and 27. So from 0-10, 11-25 ,26-40 the same enemy for each range is spawned a total of 11 time…

[Previous page](https://forums.kodeco.com/c/general/sprite-kit/22.md?page=2)

[Next page](https://forums.kodeco.com/c/general/sprite-kit/22.md?page=4)
