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.
我想让一些文字在 iPhone 游戏中出现和消失在一阵烟雾效果中。例如,当有人得分时,我想显示添加的新分数。它应该出现在一阵烟雾中,并在一两秒钟内消失。
我该如何创建它?
看看 71 Squared 的 Particle Designer。它的成本约为 7.99 美元,包括简单的代码生成和集成。共享库中有一些预配置的烟雾效果。
http://particledesigner.71squared.com
您很可能会使用粒子获得某种“廉价”效果,但您可以很好地控制动画(速度、缩放、加速度……)。另一种方法是使用多个烟雾图像并叠加它们,然后启动一个 UIView 动画,其中包含用于旋转、缩放和计时的随机属性。