SpriteKit: Getting node at CGPoint
More about “SpriteKit: Getting node at CGPoint” related questions

SpriteKit Select Sprite node from CGPoint

First post, I'm in Apple's SpriteKit framework...(new programmer) and I have a bunch of nodes that are stationary. How do I select/grab a particular node if I know the coordinates (CGPoints)? I

Show Detail

Swift, SpriteKit and multidimensional arrays with CGPoint

I get an error when using a multidimensional array with CGPoint in a property at a SKSpriteNode derived class. Only under these circumstances. Error is: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP,su...

Show Detail

Swift SpriteKit Rotate Node at x-axis

i am following this tutorial (i think it is written in JavaScript): 3D Terrain Im trying it in Swift with SpriteKit but have a problem with the rotation at the x-axis. So this is what it looks li...

Show Detail

SpriteKit Coordinate System Origin

I have been trying to place nodes on the screen with the SpriteKit Framework with Swift, however I cannot find where the origin is. I thought it was at the bottom left corner but when I place node3...

Show Detail

Sprite kit CGPoint not working as expected

I am writing a game in Sprite Kit and I am having a problem with CGPoint, at the moment if the phone is portrait the object comes in from the right side of the screen and goes to the left, I need i...

Show Detail

iOS 8 Game with SpriteKit for any device

I'm creating a very simple game using Sprite Kit in Swift. The game has a simple grid of SpriteKitNodes and I would like to ask what's the better way to develop it for all devices in a single shot....

Show Detail

SpriteKit sprites are cropped in portrait orientation

I am having trouble understanding the co-ordinate system in SpriteKit. The documentation states that a scene size is 1024x768 and the anchor point for the scene is CGPointZero (i.e. the bottom left...

Show Detail

UIPanGesture In SpriteKit

I'm trying to make a ball, SKSpriteNode, move in ALL directions including diagonals and all other directions. UIGesture doesn't work with it so I need to use UIPanGesture but I have no idea how to

Show Detail

SpriteKit What is a node?

I'm new to programming in Swift in general and I was reading up on SpriteKit. I'm looking through a lot of tutorials and they keep talking about nodes. The funny thing is, I can't seem to find what a

Show Detail

SpriteKit draw upside down text

In a playground, I am trying to make a SpriteKit scene with a top left origin going down (ie like a drawing program). Everything works except for text which is flipped. I need to make the text righ...

Show Detail