设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 61|回复: 0

[制作教程] MULTIPLAYER Engine !! [PC]

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    前天 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    4461

    主题

    864

    回帖

    2万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    22929
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    28284

    灌水之王

    发表于 前天 14:07 | 显示全部楼层 |阅读模式
    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)



    Inside 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/

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-7-14 16:52 , Processed in 0.144523 second(s), 57 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表