Hello everybody, Imma show ya how to make a cringy Multiplayer engine, and, if you wish to, make the Player 2 able to interact with the events I just made by myself and wanted to show.
How? Well, here it is.
FIRST STEP
You're gonna need 2 essencial events.
EV001 - "Player 2"
EV002 - "Player 2 Act"
It's necessary to have in every map the same Event ID for both events.
(It's recommended to use EV001, EV002, it means the first and second events created in the map)
You're gonna need, also, another event, this one doesn't matter the ID, but it's necessary for making the "Event Interaction Engine".
We're just gonna call this event "EV003".
SECOND STEP
Firstable, after creating the events, we're gonna put a Graphic, obviously, the frequence movement at the Highest and the movement speed at 4.
It's better if the Player 2 is faster than the Player 1, because the Player 1 have the Camera Vision, and if the Player 2 is faster, it's more compensable.
In the EV001 (Player 2) we're gonna use the movement, using the concept in this picture.
Like you can see, there are the keys "W" "A" "S" "D" wich are called "R" "X" "Y" "Z"
Well, you can expect what we're gonna do now.
We have to go to the "Event Commands Section" and then go to the page 1, after that, we're gonna press [Conditional Separation]
(Sorry, my game is in spanish, I hope you understand)
I
nside there, we go to the Page 4 and the "The Button is Pressing" option.
(This is becoming so long post) After that, we're gonna put the Button R, X, Y and Z, it has to look something like this.
Okay, I am a ed, you have to put the Event Initiator to a [Parallel Process], not [Automatic] 'cause that would make the Player 1 unhable to move. So [Parallel Process].
NOW! we're gonna put the movement!
R CONDITION:
Movement Route: "This Event"
Action: "Move Up"
Repeat Action: "No"
Ignore if can't move: "Yes"
Wait until ends: "No"
X CONDITION:
Movement Route: "This Event"
Action: "Move Left"
Repeat Action: "No"
Ignore if can't move: "Yes"
Wait until ends: "No"
Y CONDITION:
Movement Route: "This Event"
Action: "Move Down"
Repeat Action: "No"
Ignore if can't move: "Yes"
Wait until ends: "No"
Z CONDITION:
Movement Route: "This Event"
Action: "Move Right"
Repeat Action: "No"
Ignore if can't move: "Yes"
Wait until ends: "No"
When we finish, we're gonna put a 9 Frames wait after every Movement Route, like this spanish and cringy picture says.
Then, we can control the character. Yes, finally, done, 2 hours explaining and is just the Step 2.
THIRD STEP
We now can control our second character, but, how do they interact with more events? Well, that's the third step!
You gotta create variables, yes, variables, a lot of engines got that, so well, you gotta create the coordenates of the Second Player.
You go to the EV002, the Player 2 Act event, and then, you put it at Parallel Process and Cross Everything.
Sorry again about the Spanish language. YOU now... have to make 4 Variables.
Yes, there are, the Player 2 Coordenates and the Event Coordenates. (At the next Tutorial I'm gonna use a video or something.)
Okay, nooow... You go to the Event Commands, Control Variables, and then you put P2 X, Game Data, Characters, This Event, Map X.
Then you do the same with the P2 Y, but with Map Y.
Something like this.
When you finish and you have something like this.
You gotta now go here, yes, again.
You put a Button Conditional Separation, this time it will be the button "L", which it means "Q" or "Pre Page" in the Keyboard.
Then, inside the condition, oh my god, more Conditional Separations! You have to make each separation for each direction the Player 2 is.
You found that in the 3rd Page of Conditional Separation, Character, you choose the "Player 2" event, (EV001) and does something like this.
It's not necessary to put each Conditional Separation in the excepcions, but I think it's better.
Button L is being pressed:
Player 2 is looking Down
Player 2 is looking Left
Player 2 is looking Right
Player 2 is looking Up
That's what you gotta do.
NOOOW you put another Control Variable and add variables in each Condition.
Player 2 is looking Down: Control Variable: [P2 Y] +=1
Player 2 is looking Left: Control Variable: [P2 X] -=1
Player 2 is looking Right: Control Variable: [P2 X] +=1
Player 2 is looking Up: Control Variable: [P2 Y] -=1
Oh, yes, and after that, you put frames, 5 frames are enough.
Once you finish this, you can now have an "Act Engine" for your Second Player.
No, wait, you need to do one thing more... Put the Event Commands and then Page 2, then Movement and then you put Adjust Event Location, you nooow...
I FORGOT SOMETHING!
You have to create SIX variables, not four.
Go to the stupid variables and make "P2 Location X" and "P2 Location Y"
At the beggining of the EV002 you put more Control Variables and make them be the Player 2 coordenates.
Done, you now, at the end of the Variables Controls, you go to the Event Commands, Page 2, Movement, Adjust Event Location, This Event, Designation with Variables:
Map X: P2 Location X
Map Y: P2 Location Y
Finally! End of Step 3, I'm going to eat something, I will edit this later so have patience, good luck.
本贴来自国际rpgmaker官方论坛作者:AndresTGamesVX处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/multiplayer-engine-pc.148091/