xcode


Spritekit Swift particle SKEmitterNode add remove


so this is nice for create a particle, but whats the right way to remove it , after the duration, sparkEmmiter.particleLifetime do not remove it automatically
let sparkEmmiter = SKEmitterNode(fileNamed: "MyParticle.sks")
sparkEmmiter.position = CGPointMake(self.frame.size.width/2, self.frame.size.height/2 - 200)
sparkEmmiter.name = "sparkEmmitter"
sparkEmmiter.zPosition = 1
sparkEmmiter.targetNode = self
sparkEmmiter.particleLifetime = 1
self.addChild(sparkEmmiter)
this solutions produce simulator crash
var re = SKAction.waitForDuration(1)
var remove = SKAction.removeFromParent()
var seq = SKAction.sequence([re , remove])
sparkEmmiter.runAction(seq)

Related Links

How to display “the” Assistant Editor?
iOS 4 won't load new property list
non_lazy_pointer problem
Search for a particular string in a process memory using GDB in OSX
How to prevent Xcode 3.2.5 to not show those blue message bubbles when debugging?
How to Turn a View into Landscape Mode in Xcode 4
XCode- Need Help With Errors (Expected ; and Expected Statement)
How to set up SDL on XCODE 4?
xcode 4 add CoreData in a existing project
How can I find my application's resource group/map in XCode?
iOS Architecture and Xcode Organiser window
How to save the option selected in UIPickerView and Load it back up
SecTrustedApplicationCreateFromPath being too smart?
How to quickly remove all the unused variables with xCode?
Xcode keeps guessing and interpreting with wrong encoding
XCode - File not found but build successful

Categories

HOME
elasticsearch
flask
lambda
typelite
yaml
android-fragments
d3.js
postgresql-9.4
nsview
filesize
out-of-memory
lvm
angular-meteor
cdi
mailing-list
pm2
google-awareness
jpa-2.0
synthesis
cloudsim
jitsi
akka-persistence
generator
sybase-ase
unrar
beego
ninject
netbios
snap-framework
seafile-server
lxml
listjs
markov-chains
transform
netstat
ng-repeat
hidden-markov-models
tidal-scheduler
python-sounddevice
netapp
pyttsx
robust
web-inspector
latexml
ipp-protocol
gcal
knockout-2.0
renderman
mura
patternlab.io
sidewaffle
email-injection
yargs
scheduledexecutorservice
ipywidgets
msg
jpda
nvda
between
qtcpsocket
qpixmap
strpos
uibinder
polymerfire
teamviewer
flipclock
seadragon
vim-plugin
godeps
android-mapview
smart-tv
html.actionlink
gitlab-omnibus
hmisc
wlanapi
prism-4
subfolder
mgwt
mojo
nhibernate-criteria
smacss
maven-central
redpitaya
incognito-mode
sqlbindparameter
jchartfx
visual-c++-2005
frontbase
mute
stty
codahale-metrics
libxml-js
blobstorage
dojo-1.9
gprof
ip-geolocation
android-dialog
image-scanner
wcf-callbacks
acpi
microblogging
motodev-studio
kohana-auth
digiflow
channelfactory
libxslt
odac
icicles
source-code-protection
iphone-sdk-3.1.3
remote-working
rendering-engine

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App