如何在我的游戏手机上进行捕捉滑动移动

时间:2017-11-04 02:37:36

标签: java libgdx screen swipe

Here is my code for movement but with keys , CLICK HERE< ---------

我正在创建一个游戏,但我是一个非常新的编码,我理解一些事情。 我不知道如何用手机上的滑动来移动box2d的“身体”。

请帮助我,我的代码是移动我的box2D机身但有键

的链接

1 个答案:

答案 0 :(得分:0)

I have successfully detected swiping in my Android application using this answer. I don't know if it will work in your case. Have a look at it anyway. Have fun

Here is the link: How to detect the swipe left or Right in Android?

时,从数据库中检索数据

对不起,这是一个更相关的参考:LibGDX - Get Swipe Up or swipe right etc.?