I am contemplating a simple app that has four characters that you can drag around on the screen. While dragging they "wiggle" — that's the animation. And they snap to a position if they get close enough to it... like in a puzzle. Without the animation, this is all simple in UIKit.
My first thought is to render each character in its own SKView
inside a plain old UIView
. I could attach UIGestureRecognizers
to each SKView
to track tapping and dragging. But I think this implies individual GameScenes
for each character/SKView
. That seems go go against the grain of SpriteKit.
The alternative is a single GameScene
with the four sprites. But I would still need to track & drag them and I don't see how to do that within an all-SpriteKit app.
Is either approach better practice than the other?