Swift Playground does not find SpriteKit particle file

53 views Asked by At

I'm making a a project that has to use swift playground (.swiftpm); It uses swiftUI for some elements but the main is on a SpriteKit Scene. My problem is that I want to use a particle and it just can't find it.

func moveSubmarine(newPosition : Float){
    if let bubble = SKEmitterNode(fileNamed: "Bubbles.sks") {
        submarine.addChild(bubble)
    }
    else{
        print("No particle found")
    }
    checkDepthForEvent(newPosition)
}

This is where I call it. And here is my project treeenter image description here

0

There are 0 answers