1

I am using Swift and SpriteKit and I create a new circle (as a Node) like this

 var circlePlayer = SKShapeNode(circleOfRadius: 10)

and I would like to access later on the radius of the circle in order to get its value or modify it (increase it by 1 for instance) - how can I achieve this?

sachalondon
  • 165
  • 1
  • 11

1 Answers1

1

Scale it. circlePlayer.setScale(2)

Check out: https://developer.apple.com/library/prerelease/ios/documentation/SpriteKit/Reference/SKNode_Ref/index.html#//apple_ref/occ/instm/SKNode/setScale:

Kendel
  • 1,698
  • 2
  • 17
  • 33