public marks

PUBLIC MARKS from an_ta with tag important

2015

objective c - Couldn't make a particle follow a path in spriteKit - Stack Overflow

(via)
let texture = SKTexture(imageNamed: "spark") let mySprite = SKSpriteNode(texture: texture) mySprite.position = CGPoint(x: self.size.width/2, y: self.size.height/2) self.addChild(mySprite) // 2) add the emitter in your first example as a child. let sparkEmmiter = SKEmitterNode(fileNamed: "fireflies.sks") mySprite.addChild(sparkEmmiter) // 3) I'd set the emitters targetNode to the scene. sparkEmmiter.targetNode = self // 4) Then I'd just animate the sprite itself in an arc. var circle: CGPathRef? = nil circle = CGPathCreateWithEllipseInRect(CGRectMake(100, 200, 200, 200), nil) let followTrack = SKAction.followPath(circle!, asOffset: false, orientToPath: true, duration: 3.0) let followTrackForever = SKAction.repeatActionForever(followTrack) mySprite.runAction(followTrackForever)

2014

2013

an_ta's TAGS related to tag important

7 +   animation +   app +   apple +   apps +   AppStore +   article +   audio +   bar +   blog +   book +   books +   buy +   cat +   check +   checkout +   clip +   cocoa +   cocos2d +   code +   color +   control +   cool +   core +   design +   development +   download +   facebook +   ffmpeg +   fitness +   font +   food +   forum +   free +   game +   games +   guide +   health +   home +   how +   idea +   ideas +   image +   images +   interview +   ios +   iphone +   ipod +   itunes +   job +   library +   life +   lock +   mac +   management +   manliness +   mike +   money +   must +   nutrient +   nutrients +   online +   os +   out +   pozitivnoto +   productivity +   programming +   promote +   promotion +   psychology +   Purchase +   read +   review +   sdk +   see +   shop +   site +   software +   source +   store +   story +   tab +   time +   tips +   to +   tool +   tools +   touch +   training +   trick +   tricks +   tutorial +   tutorials +   useful +   very +   video +   view +   windows +   work +   youtube +