Demo Example Swift Code
$10-30 USD
Pago na entrega
I am learning to program an app using Swift and would like help with some specific requirements. And would like some example code written.
iPhone 6 Demo App
Using SpriteKit
What I would like to do is to attach two SKSpriteNodes together.
Node 1 square 150x150
Node 2 square 50x50
I would like the two nodes to be independent within the GameScene, I would like to be able to drag and drop each node within the scene, but if I drag node 2 over Node 1 (top left corner) and release my finger, Node 2 anchors to Node 1 in the top left corner. Now when I move Node 2, Node 1 moves with it. There needs to be physics applied to the scene and when the touch event ends the Nodes fall to the bottom of the scene.
If I press node 2 again, the anchoring is removed and the 2 Nodes are independent again, both affected by physics.
I would like the same to happen for each corner of Node 1.
I would like to be able add additional Nodes to the scene with the same functionality. There fore each Node will have its own class.
I hope that makes sense.
I would require the code to be heavily commented so I can learn how it works.
ID do Projeto: #8972076
Sobre o projeto
Concedido a:
I'd be happy to create this demo for you. Don't have any clarifying questions at this point, but I'm sure some would come up during development.