jeudi 29 janvier 2015

How to create a custom property for SKSpriteNode?

For example I am trying to make some SKSpriteNode, and they can only last for 10 secs. I want to create a custom property called "bornTime" for the node, so that in update() if currentTime - bornTime > 10, the node will be removed.




Aucun commentaire:

Enregistrer un commentaire