如何连续移动背景图像cocos2d [英] how to move background images continously cocos2d

查看:145
本文介绍了如何连续移动背景图像cocos2d的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对cocos2D相当陌生,遇到了一个使我无法参与游戏开发的问题。我需要背景图像,一个是道路图像,另一个是人行道,我想要的是比人行道图像更快地移动道路图像吗?我如何完成这项任务?
请帮助。
谢谢您的期待。

I am fairly new to cocos2D and i am experiencing a problem that made me stuck on my game development. I have to background images, one is an image of a road and the other one is of footpath, what i want is to move the road image faster than the footpath image? How can i accomplish this task? Please help. Thanking you in anticipation.

推荐答案

看看 CCParallaxNode 。它是cocos2d的一部分。

Have a look at CCParallaxNode. It's part of cocos2d.

这篇关于如何连续移动背景图像cocos2d的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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