如何在andengine中添加用于移动精灵的路径 [英] How to add trail path for moving sprite in andengine

查看:155
本文介绍了如何在andengine中添加用于移动精灵的路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作游戏直升机(或更好 HERE 这3个例子:




  • ParticleSystemSimpleExample

  • ParticleSystemCoolExample

  • ParticleSystemNexusExample


I'm working on a game copter (http://i1-games.softpedia-static.com/screenshots/Copter_1.jpg). When you touch the screen, you go upwards otherwise you'll go downwards. So you are changing the position of the sprite.

Now I want a trailpath for my sprite, does anybody who has an idea how to do it? Here is an example of how it should look like:

Tips for on the center line are good enough. If you have an idea how to do the gradient, let me know!

解决方案

You need Particles. You can look HERE or better HERE this 3 examples:

  • ParticleSystemSimpleExample
  • ParticleSystemCoolExample
  • ParticleSystemNexusExample

这篇关于如何在andengine中添加用于移动精灵的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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