有可能在iOS的SpriteKit创建玻璃破碎的动画? [英] Possible to create glass shatter animation in iOS SpriteKit?

查看:906
本文介绍了有可能在iOS的SpriteKit创建玻璃破碎的动画?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个开始编程X上code创建游戏主要使用雪碧套件。我一直在使用的教科书的iOS游戏通过教程由Wenderlich,并说明了如何使用粒子系统功能。我正在游戏中有一些定制的玻璃质感的对象可降至(我目前使用的一种非常原始的'爆炸'作为粉碎)。我创建了一个玻璃破碎动画的.MOV但它的大小是20MB这是我的游戏+图像的其余部分的尺寸几次,所以我不愿相信这是正确的方法,无论是。我想知道,如果有人可以给我建议就如何使用该做一个体面的前瞻性玻璃破碎的动画或点我在更先进的粒子系统教程的方向(或直接我创造了玻璃破碎的动画更好的办法)?

I am a beginning programming creating a game on XCode primarily using Sprite Kit. I have been using a textbook "iOS Games by Tutorial" by Wenderlich, and it explains how to use the particle systems feature. The game I am making has a few custom made glass-textured objects that can fall (I am currently using a very crude 'explosion' as the shatter). I created a .MOV of a glass shatter animation but its size was 20MB which is several times the size of the rest of my game+images so I am hesitant to believe this is the correct method either. I was wondering if someone could give me advice as to how to make a decent-looking glass shatter animation using this or point me in the direction of a more advanced particle systems tutorial (or direct me to a better way of creating a glass shatter animation)?

推荐答案

我的SpriteKit粒子系统打过来,我想出了一个不为粗制玻璃破碎模式。

I played around with the SpriteKit particle system, and I came up with a not-as-crude glass-shatter pattern.

这些变量只是样品,并可以修改并根据您的具体的味道(在粒子编辑器领域,而不是code格式):

These variables are just samples, and can be modified and tailored to your specific taste (in the format of the particle editor fields, not code):

 Particle BirthRate: 1000  Maximum: 100
 Lifetime: 1  Range:0

 Position Range X: 100  Y:100
 Angle  Start: 90  Range: 90
 Speed  Start: 300  Range: 150
 Acceleration  X:0  Y:-1500

 Alpha: 1
 Scale: 1
 Rotation  Start: 0  Range: 350  Speed: 50

 Color:  Some sort of light cyan if you want a classic glass look

的最重要因素似乎是在Y加速度,以及非常高的出生率和非常(比较)低的粒子最大。这使得看起来像玻璃震碎而略有上升的粒子效果。

The most important factors seem to be the Y acceleration, and the very high birthrate and very (relatively) low particle maximum. This results in a particle effect that looks like glass being shattered up slightly.

这篇关于有可能在iOS的SpriteKit创建玻璃破碎的动画?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆