Post

Replies

Boosts

Views

Activity

Reply to Why is SKPhysicsBody not picking up alpha?! SpriteKit for a WatchOS game.
My content does fill the entire screen. I am also using SKShapeNode for the game's area and my level background that I need collision on. When using "alphaThreshold: 1.0," no collision happen. When removing the alphaThreshold, collision happen instantly, even in the hollowed/transparent area of my level background asset. Some context: A rocket spawns on a base. The rocket moves within the transparent area of the background, and collides with its when hitting the opaque area of the background (walls) GameScene.swift Level1View.swift Here is the test level background image I am using, a big white square, with a smaller hollow square in the middle of it:
Jan ’25