samedi 27 juin 2015

Sprite-Kit Swift: How can I drag a SpriteNode across the screen

I have a SpriteNode which is a ball. It drops down the screen and I want to drag and release so that it can move by itself towards the top of the screen where a laser will destroy it. The ball itself is affected by gravity. What code do I need to write in touches began so that I can specify that when I touch the ball the above description starts.

Aucun commentaire:

Enregistrer un commentaire