Is 2-Player Hotseat Available?

What I want to know
You know, when 2 players share a keyboard, one using the arrow keys and space bar, the other using WASD and left control, so you can control two at once? It doesn't need to be split screen, it doesn't need to be online, it's using one keyboard
 
What I've tried
I know Woratana made a script for VX, but VX is not as cool as VX Ace 🙁
 
Also, Tsukihime tried before so I messaged him and he'll probably message back as soon as he gets online. I'm just posting it here in case that plan fails.
 
And I tried using autorun and parallel processes in VXA along with Cidomar's Full Input Script to produce events that can move. Here's what happened when using Autorun or Parallel Process:

  • Autorun -- Only the autorun event is running, so I can't control my character with the Arrow Keys while this is happening. So nope.
  • Parallel Process -- Strangely, it doesn't register all key presses. I often have to press a key about 3,4,5 times in order for it just to move. Not practical at all. Here's a screenshot of what's inside the event:
Spoiler
amlpRbr.png
 
Why I need it
I'm using it to create a co-op puzzle game. So I want both of the characters to be able to interact with events on the map just like real players.
Thanks in advance!
It could be that the keypress is too fast or something... Also, it might not be able to register simultaneous keypresses (like if you press the UP button and the A button at the same time, only one keypress will be catched)
I believe you want Input.press?() instead of trigger. I don't recall which each of the three does (can be found in the help file) but after some testing I found press works best when you want it to register.

The problem is it registers it a bit too well so it's hard to make precise movements. You can add wait and some other things to adjust it accordingly..

When I use it for evented menus I tend to include wait (about 10-20 frames) and then exit event processing.

Any who.. A script would probably work better, but I've not seen anything better than what you posted for VXA. Sorry.

P.S. Not exactly what you asked for, but I had a similar puzzle. If you don't need both players to move at the same time then you don't need such a complex event, and instead just do this.

1. Create an event to represent player 2.

2. Have a parallel process to detect when you switch between players.

3. When key is pressed (again, I suggest Input.press? rather than Input.trigger?) it will register the x && y of the player, and the event representing player two. It will then switch their places and switch their graphics. 
P.S. Not exactly what you asked for, but I had a similar puzzle. If you don't need both players to move at the same time then you don't need such a complex event, and instead just do this.

1. Create an event to represent player 2.

2. Have a parallel process to detect when you switch between players.

3. When key is pressed (again, I suggest Input.press? rather than Input.trigger?) it will register the x && y of the player, and the event representing player two. It will then switch their places and switch their graphics. 
Thanks Acetonide. The Input.press? tip is useful, but the problem is that I would like the players to move at the same time, because Tsukihime has a player-switching script that works very well. But the aim is for both players, controlled on the same keyboard, can activate events in real-time collaboratively. I'm looking to do a co-op puzzle mode kind of like what Portal 2 has, where 2 players work together at the same time to solve puzzles. Thanks for the input, though. (No pun intended)

EDIT: It seems that Input.press? works like a charm. Thank you, Acetonide!

Although, where would you put the wait command? Would you do it like this:

> Cond: Input.press?🙂LETTER_W)

>> Label: W_Loop

>> Move: This Event, Move Up

>> Wait 10 frames

>> Cond: Input.press?🙂LETTER_W)

>>> Go to Label: W_Loop

>> else:

>>> End Event Processing
I think I figured out how to do 2 player (The majority of it) Giving each player their own movement, sprint, and (interaction/event) keys!

This is what the script ruffly looks like:

[IMG]https://pbs.twimg.com/media/CDAmvTXVEAA7zbV.png[/IMG]

Other specs:

Event Name: Player 1

Event Speed: 4: Normal

Event Frequency: 3: Normal

Trigger: Parallel Process

The sprinting does not work immediately, it takes a few frames before the player starts sprinting, normally after ~2 steps. However, the player does start sprinting when they are standing still. Note: I have tried to change the order of operation, but it does not respond to it.

For the other player, you just need to change the button responses. I recommend using the Numpad like I am. Hope this helps at all...
Haha, thanks Kanto Ruki. This is a pretty old thread and I already created part of a puzzle game based on 2 players. That waiting of 5 frames is a bit dodgy, though. I used a script to detect me releasing the key after pressing it. I should probably post it here, too. It works pretty well, but it doesn't include running or interaction yet.
Kanto Ruki, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/is-2-player-hotseat-available.19492/