像Instagram iOS应用的登录屏幕一样,如何为Sprite-Kit游戏的背景设置动画? [英] How to animate background of a Sprite-Kit game just like the login screen of Instagram iOS app?

查看:100
本文介绍了像Instagram iOS应用的登录屏幕一样,如何为Sprite-Kit游戏的背景设置动画?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Sprite-Kit中创建一个游戏,并且希望以与Instagram在其登录屏幕上类似的方式为背景制作动画.

I am creating a game in Sprite-Kit and would want to animate the background in the similar fashion as Instagram does on its login screen.

基本上,我只是想知道如何在游戏中具有背景,就像Instagram应用在其登录屏幕上一样,即粉红色的屏幕逐渐变为紫罗兰色,然后变为红色,具有非常细腻的流动效果从右到左.我知道如何为渐变设置动画,但是我正在谈论的那种微妙的效果似乎并没有产生气流或气流的流动(我爱上了这种效果).

Basically, I just want to know how to have a background in my game just like the Instagram app has on its login screen, i.e the pink colored screen which gradually changes to violet color and then to red with a very subtle flowing effect from right to left. I know how to animate the gradient but that subtle effect that I'm talking about which gives quite a view of a gas or stream flowing (I'm in love with that effect) doesn't seem to be happening.

推荐答案

您可以使用BackgroundVideoiOS之类的框架,如

You could use a framework such as BackgroundVideoiOS as seen on github

这篇关于像Instagram iOS应用的登录屏幕一样,如何为Sprite-Kit游戏的背景设置动画?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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