Post

Replies

Boosts

Views

Activity

How can I make two SKActions run at the same time?
I have this code that makes the cam move and then zoom, but I want to make the zoom while it's moving. How can I do that? swift let zoomInAction = SKAction.scale(to: 0.2, duration: 1)         let moving = SKAction.move(to: CGPoint(x: -255, y: 15), duration: 3)         let sequence = SKAction.sequence([moving,zoomInAction])         cam.run(sequence)
1
0
712
Apr ’21
I am using SwiftUI with SpriteView. How can I make the SwiftUI background transparent so that it keeps appearing the SpriteView content behind?
I have a scene in SpriteKit and I call it through SpriteView and I'm using SwiftUI to make a header with some information. I've already managed to make the layout I want it to have, but I can't make the header without a background (transparent). I want the background of this header to be transparent so that only the elements I set in SwiftUi appear and the background is the continuation of the SpriteView.
0
0
532
Sep ’20