MZ Question about phones playing the game

So I am making a game feature that requires you to use action button to perform an action that will help with puzzles depending on your party members.

My question is, how does the game work when transfered to a phone? is there a way to press the action button? because the events that require action button don't work when i click, i wonder if that will be the way it is when played on phones. I want to make sure that when played on phones it's actually possible to play
Input.virtualClick('ok')

The way I've made mine work so far has been using this piece of script, tied to the button picture plugin that comes with MZ.

I use a parallel process that will get the players coordinates. Then ask which direction the player is facing. Adding or subtracting from the x or y to get the next tile in that direction. Then using Get Location Info to get the eventID of what's standing in that square, then ask If eventID is greater than 0 display a picture "Talk" else erase picture. And repeat for each direction the player can turn.

Additionally if you use Visustellas Event Move Core you'll get self switches and variables. So you could assign a variable in that parallel process that says which ever event your facing save it's ID. So you could make event pages tied to these switches and then have your button pictures pop up that will call a common event that you can run a plugin command for it to turn on that events self switch then execute the script at the top of the screen!

I hope that made sense. I'm about to head to bed so if you want to know more just let me know!

I've moved this thread to MZ Support. Thank you.

I'll look the button thing on.
I tried following y and x but it slows the game as little. I think I'll use some kind of region id plugin for that
I'll look the button thing on.
I tried following y and x but it slows the game as little. I think I'll use some kind of region id plugin for that

Do you have alot of parallels running? Or just alot of events on screen? Keep in mind that a PC will run the game smoother than most phones will so if just grabbing the x and y slows it down you may want to rethink some of your events to handle better?

Original thread: https://forums.rpgmakerweb.com/threads/mz-question-about-phones-playing-the-game.139364/