Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Interface builder for SpriteKit

Tags:

swift

view

I was wondering if it's possible to draw an interface using storyboard just like for UIViewControllers but with SpriteKit. I've saw this link which has something similar to this question: Link I've also could present a SKScene converting the UIViewController's view (on loadView()) but when I do so, the view isnt recognized just like I've drawn on storyboard. Is there any easier interface builder for SpriteKit or only by code?

like image 554
Julio Didier Maciel Avatar asked Aug 10 '26 05:08

Julio Didier Maciel


1 Answers

There are .sks files that are included to provide a way to drag and drop your items directly onto the scene as if it were sprite-kit's "storyboard" of sorts. This can be for animations, buttons, anything graphical. There's a lot you can do there that will replace code as well.

Look at an example here -> SpriteKit from Scratch Tutorial

The above tutorial entries from the same person shows you how to animate, reference, etc.

I haven't gone through them yet but if you're looking for Sprite-Kit's version of a storyboard that's going to be your best friend.

like image 122
Alexander Bourlotos Avatar answered Aug 13 '26 02:08

Alexander Bourlotos



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!