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)
Post
Replies
Boosts
Views
Activity
I know that now there's a way to integrate SpriteKit with SpriteView, but I'm not using the beta. So, how can i do this?
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.