Questions tagged as 'spritekit'

1
answer

Swift - Nodes pass from one side to another with touchesMoved if the physicsBody body is very thin

I have two SKSpriteNode the cat and the black wall, each of them have the class physicsBody associated so the cat is on top of the black wall. The cat moves it with the finger with the function touchesMoved of the followi...
asked by 02.02.2016 / 17:27
1
answer

Doubt about bounding boxes SpriteKit

How can you create a bounding box that collides with a circular shape, being this triangular?     
asked by 26.09.2017 / 18:12
3
answers

how to randomize an array of strings?

I have an array and I want to randomize this array so that every time I start the app the elements are in a different position, how can I do this? I have found different extensions on the internet, and some work, but when doing it random, they r...
asked by 23.08.2018 / 05:19
1
answer

Problem About SpriteKit

a question about spriteKit. Every time I play a game, the object appears to me as if the point of coordinates of the scene were in the middle of the scene, ie 0.5. And I've seen the documentation, and it says that the coordinate axis of a sce...
asked by 11.09.2017 / 16:33
1
answer

Download volume to SKAudioNode in a certain time

I am trying to download the volume to a SKAudioNode using the following code: audioNode?.run(SKAction.changeVolume(to: 0.0, duration: 3.0 )) You should lower the volume to 0.0 in 3.0 seconds. But the sound stops immediately. Is it possib...
asked by 21.10.2016 / 02:24
0
answers

Animations made with the Xcode editor in Spritekit begin paused

All the animations made with the Xcode editor in .sks files start paused in my projects, but I see that in examples of books and tutorials the same thing does not happen and the animations are executed as soon as the application is started. P...
asked by 23.05.2018 / 11:35
0
answers

SpriteKit - Problem with points in Map

I'm programming a game with SpriteKit and I have a map like the one I attached and the protagonist is jumping from point to point, and at each point there is a game. I put the points on the image, but depending on the screen resolution, that poi...
asked by 17.03.2016 / 21:50