Profile Photo
I'm trying to figure out that a SKSpriteNode has completely iterated over another SKSpriteNode, this the code I have come up so far, if (node.frame.maxY == player.frame.minY){ player.physicsBody?.collisionBitMask = collisionTypes.vortex.rawValue } I know it's simple enough, but I'm lost here ;(
in SpriteKit
Profile Photo
Hi. For the past few days, I have been trying to create an SKShapeNode (a rectangle) that will be used as a menu screen moving down from the outside of the screen when a button is tapped. Everything behind the node should be blurred.   Something to this effect: https://stackoverflow.com/questions/49142867/spritekit-blurred-background-sknode  … (Show more)
in SpriteKit
Profile Photo
Hi.   I am adding a UITextfield to my SKScene:   txtName = UITextField()… (Show more)
in SpriteKit
Profile Photo
Hi. I have faced a problem in a seemingly easy situation. I am using SpriteKit to present several boxes (SKShapeNodes) with texts inside (similar to a messaging app). The boxes are created just nice. However, when I rotate the device, the lowest and the second to lowest boxes are placed as expected, then the next box is located higher (by the… (Show more)
in SpriteKit
Profile Photo
Hi. I am trying to figure out how to do a simple thing, but all research that I have done so far has not clarified what the proper way to do it is. I am adding a UITextView that should expand while I am typing upwards and then enable scrolling when the maximum height is reached. Instead, my UITextView is expanding downwards. My code:  … (Show more)
in Cocoa Touch
Profile Photo
Hi. I had the following code in Swift 3 to send a String message using NSStream.   @objcfunc processOutput()… (Show more)
in Swift