我正在尝试为Android开发游戏并启动游戏,您可以点击(触摸)任何地方而无需点击精灵或其他内容。 这可能吗?
答案 0 :(得分:4)
这是最简单的解决方案
if (Gdx.input.isTouched()) { // is called whenever the finger is on screen touch
// screen is touched : finger on the screen
}
或者:
if (Gdx.input.justTouched()) { // is called onetime when screen is touch
// Screen is Touched
}