Android drawing a line to follow your finger

后端 未结 6 1689
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-13 01:27

What I want to do is to draw a line that will follow my finger. I\'ve created a custom view, and I have an onTouchEvent() that works.

I can draw a sta

6条回答
  •  [愿得一人]
    2020-12-13 01:45

    Its been a while but this post still gets some views so I figured i'll post some helpful stuff:

    Tutorial on how to make an object follow a line: http://www.rengelbert.com/tutorial.php?id=182

    This is a good free game engine that the above tutorial uses also: http://libgdx.badlogicgames.com/

    Hope this helps someone out!

提交回复
热议问题