简体   繁体   English

如何在andengine中添加用于移动精灵的路径

[英]How to add trail path for moving sprite in andengine

I'm working on a game copter ( http://i1-games.softpedia-static.com/screenshots/Copter_1.jpg ). 我正在开发一款游戏直升机( 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: 以下是它应该如何显示的示例:

trailpath

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: 你可以看看这里或更好的位置这3个例子:

  • ParticleSystemSimpleExample ParticleSystemSimpleExample
  • ParticleSystemCoolExample ParticleSystemCoolExample
  • ParticleSystemNexusExample ParticleSystemNexusExample

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM