I can successfully archive and unarchive an array of SKPhysicsBody's using UserDefaults as below but the unarchive process has been deprecated. This i ...
I can successfully archive and unarchive an array of SKPhysicsBody's using UserDefaults as below but the unarchive process has been deprecated. This i ...
Assume I have all my physics body and dynamic properties set properly I have a player and a wall When I swipe right, the user hits the wa ...
I'm making a 2D scrolling shooter in Swift with SpriteKit. I've set up SKPhysicsBody and using bitmasks for collisions. I keep getting intermittent er ...
I am making a game where the "arrow" in this case, is a node that falls every few seconds in a random area from top to bottom of the screen. The probl ...
I have been playing with the SpriteView in iOS14 and its working quite well however, I noticed that some collisions that worked fine when using a UIVi ...
I would like to set custom falling speed for selected sprite nodes. Problem is, if gravity is updated, it will change all of the scene nodes. If imp ...
I'm making my own Mario Bros. replica for the first level to learn how to make games with iOS, with my own assets. So far I've managed to place three ...
Good Morning, How can I get the location of a contact between two Physicsbody via allContactedBodies? Because of the structure of my App I cant use t ...
I would like to detect the nodes name my player node colides with. Is that possible? ...
I have an SKSpriteNode that I set above the screen, so that it'll drop from above. So it does have an SKPhysicsBody that affectedByGravity. But that's ...
I have changed this question more than a bit, so I moved it to a new thread: How can I set a physicsbody to be properly centered? I am just starting ...
In my didMove function I say physicsWorld.contactDelegate = self and at the top of the class I inherit from SKPhysicsContactDelegate. I add a SKSprite ...
I want to remove the diamond once it come in contact with the player and also the player when it comes in contact with the obstacle. Currently im un ...
I have an animated character on my game with 8 different textures that are on "repeat forever". I need a physics body for it but I don't know how I ca ...
Am working, at a beginner's level, on a simple game. I have slots, and five balls for each slot. The idea being that the balls go into the slots, and ...
Here is the code of physics body that worked year ago but now for some reason not. Here I create physics body, but it is actually returns nil. Every ...
I’m having trouble creating a physics body from a texture that matches the outline of the texture. I’m using SpriteKit’s SKPhysicsBody(texture:,size:) ...
I'm trying to create a House Stack-like game (https://apps.apple.com/gb/app/house-stack/id1458713825?l) but having problem to assign physics mechanism ...
I want to detect what direction the sprite is moving in without using a physics body. I tried using a physics body as shown below: but get the e ...
I'm trying to write a game where stars are falling from the top of the iphone screen to the bottom. I want to remove my star sprites when they're out ...