I put a mobile version of my game on my Android tablet. Everything seems to be running fine, except for 1 thing. I have an event set up to show a picture on the screen that is set to only go away when Space or Esc key is pressed, but when playing on tablet, nothing I do gets the picture to disappear. Not single tapping nor double simultaneous tapping nor swiping functions. What do I do to make it work?
Mobile game version doesn't register key input
RPG Maker MV SupportAndroid phones only have touch input and everything gets decided by one finger, two fingers or long touch. These inputs aren't substitutions for esc button or any other buttons. I would tell you how to do it, but now I'm too dehydrated to even focus.
@Poryg Well, I can wait if you need time.
I didn't drink for whole day and still need to take a proper meal. So I will be sure to take my time and hope this time somene can help you sooner than I can 🙂
If you want to do it yourself, track touch functions inside scripts. If (this.isTouchInput) and things like these.
If you want to do it yourself, track touch functions inside scripts. If (this.isTouchInput) and things like these.
Thanks, though I'm an absolute noob at scripting, so I'd rather wait until you have time to explain. 🙂
You should learn some, it really comes in handy sometimes. I'm being honest now, my javascript knowledge is not huge, but helps me a great deal.
Alright.
I will point out all relevant functions regarding touch input.
TouchInput.isPressed () - when there are fingers on the touch input
TouchInput.isTriggered () - you just touched the screen
TouchInput.isLongPressed () - when you pressed the screen and sustained for some time
TouchInput.isRepeated () - a function I don't understand
TouchInput.isMoved () - when you swipe a finger on the screen
TouchInput.isReleased () - when you stop pressing the screen.
So I think Conditional branch -> Script -> TouchInput.isTriggered () will do the job. Funnily enough, I wasn't able to find a function for a two finger input 😀
Alright.
I will point out all relevant functions regarding touch input.
TouchInput.isPressed () - when there are fingers on the touch input
TouchInput.isTriggered () - you just touched the screen
TouchInput.isLongPressed () - when you pressed the screen and sustained for some time
TouchInput.isRepeated () - a function I don't understand
TouchInput.isMoved () - when you swipe a finger on the screen
TouchInput.isReleased () - when you stop pressing the screen.
So I think Conditional branch -> Script -> TouchInput.isTriggered () will do the job. Funnily enough, I wasn't able to find a function for a two finger input 😀
Thanks, I will try that. 🙂
Original thread: https://forums.rpgmakerweb.com/threads/mobile-game-version-doesnt-register-key-input.82568/