Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
iOS /cocos2d でパーティクル システムを起動し、たとえば 10 秒間実行してから停止する方法を教えてください。
ガイドとして役立つ小さなコードスニペットまたは例をいただければ幸いです。
ありがとう
ps がパーティクル システムであると仮定すると、次のように開始および停止できます。
[ps resetSystem]; // starts, newly created effects are already running [ps stopSystem]; // stops
10 秒間待機することで、10 秒間隔でセレクターをスケジュールできます。