How can I move an image from one point to another using Android Canvas

后端 未结 3 1487
慢半拍i
慢半拍i 2021-02-13 02:32

I\'m developing a game, and in this game I have to move an image on a Canvas from one point to another in any direction, not just vertical or horizontal.

How can I mo

3条回答
  •  自闭症患者
    2021-02-13 02:41

    Take a look into this library. It should help you with moving, and I think dragging objects like image, etc - PhysicsLayout. Here you can see moving with Two directions - X, Y. If you want to move including Z, there is only single way to implement it, you should use simple scaling.

    If you want something more, there are a lot of powerful and pretty nice Frameworks, Environment.

提交回复
热议问题