I've tried to change the value of an variable in an SKAction but it did not work and now I want to know if it is possible and if yes then how?
Thank you for your answers
Yes you can do that, you will set up an SKAction to run a block like so:
SKAction
let anAction = SKAction.runBlock { myVariable += 10 } someNode.runAction(anAction)
Yes you can do that, you will set up an
SKAction
to run a block like so: