i've made app , along have been using custom made subclass special properties this
class skspritenodeb: skspritenode{ var tempflag = bool() var tempa = cgfloat() var tempb = cgfloat() var tempc = cgfloat() }
and calling :
override func touchesbegan(touches: set<uitouch>, withevent event: uievent?) { _ in touches { let touch: uitouch = touches.first! let location = touch.locationinnode(self) let touchednode = self.nodeatpoint(location) as? skspritenodeb touchednode.tempa = 5.0 touchednode.tempflag = false //do }}
this works in ios 9.0 , above when tested in ipad mini running ios 8.4 these skspritenodeb's not responding touches. have other nodes not skspritenodeb's , functioning correctly. advice appreciated! thanks!
one thing in situations this, when want node "hidden" still tappable instead of setting hidden true, set alpha 0.0, , when want "unhide" node increase alpha of node.
Comments
Post a Comment