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

[制作教程] Light's Out Puzzle

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

    连续签到: 2 天

    [LV.7]常住居民III

    4446

    主题

    864

    回帖

    2万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 3 天前 | 显示全部楼层 |阅读模式






            Difficulty: Beginner Friendly (10+ hours invested into the engine)


    SpoilerWavelength has noticed that you do not need Labels for this event to work - they were left in after earlier playtests. I hope you enjoy the tutorial!






    STEP 1


            First, place down 9 Events in a 3x3 pattern. Keep in mind you don't have to place all the event's at once - it will be easier to copy and paste Event 1.1 later.
            Name the events as such:







            Go to Event 1.1 and change it's picture to any image you like, then set it to "Below Characters" and "Action Button".


    STEP 2


            Now, we are going to get into the meat of the puzzle. The idea is, whenever we use a tile, the color of that tile and all adjacent tiles change. We'll be using Conditional Branches, Swiches, and Labels to get the job done. In the spoiler tag, you will find how you should set up the first page of your event. Refer to the picture below for more information on how the event works. Keep in mind, the spoiler tag shows how to set up Event 1.1, the Event in the top left corner.
             

    SpoilerPlay Sound Effect


                            Conditional Branch


                               IF Switch 1.2 = ON


                                    THEN Switch 1.2 = OFF


                                    Jump to Label: 1
                               ELSE
                                     THEN Switch 1.2 = ON


                                     Jump to Label 1


                            Label 1


                            Conditional Branch


                               IF Switch 2.1 = ON


                                     THEN Switch 1.2 = OFF


                                     Jump to Label: 2


                               ELSE


                                     THEN Switch 1.2= ON


                                     Jump to Label: 2


                            Label 2


                            Conditional Branch


                               IF Switch 1.1 = ON


                                      THEN Switch 1.1 = OFF


                             ELSE


                                      THEN Switch 1.1 = ON






    [/url]


            What were doing here is basically asking, "What color are you?".


            Then, once we figure out what color it is (if the switch is on or off), we simply change the color by changing the switch on or off.


            Keep in mind that when you activate a tile, it changes itself and all adjacent tiles. The switchs we made correspond to which tile we are changing.


            In the example above, when you click the top left tile, tiles 1.1, 1.2, and 2.1 all switch their colors.


    STEP 3


            We're still working with Event 1.1


            Click the "Copy Event Page" button, then click the "Paste Event Page" button.


            You won't be editing any of the Event commands - make sure they are the same as your first page.


            Simply change the condition of this new event page to require Switch 1.1 to be on.


            Then, change the graphic to a different color of your choice.


            Finally, click "Paste Event Page" one more time, this time deleting everything in the Event commands.
            Simply change the conditon switch to "Complete", and change the image color to one you haven't used yet.


            You just finished your first Event!


    [url=https://forums.rpgmakerweb.com/attachments/lo3-png.44273/]



    [/url]


    STEP 4


            Now that you've done the legwork, the rest of this system is smooth-sailing.


            Copy and paste the event to the space right next to it, and name this Event 1.2


            All you have to do now is change the Switches in the Event code to reflect the new tiles that are adjacent to it.
            In addition, you will need to create 1 additional label for the middle events on the outer row, and 2 additional labels for the event in the middle.


            The spoiler tag below will show you how Event 2.2 (the middle tile in your 3x3) should look:

    SpoilerPlay Sound Effect


                            Conditional Branch


                               IF Switch 1.2 = ON


                                    THEN Switch 1.2 = OFF


                                    Jump to Label: 1
                               ELSE
                                     THEN Switch 1.2 = ON


                                     Jump to Label 1


                            Label 1


                            Conditional Branch


                               IF Switch 2.1 = ON


                                     THEN Switch 2.1 = OFF


                                     Jump to Label: 2


                               ELSE


                                     THEN Switch 2.1 = ON


                                     Jump to Label: 2


                            Label 2


                            Conditional Branch


                               IF Switch 2.3 = ON


                                      THEN Switch 2.3 = OFF


                                      Jump to Label: 3


                             ELSE


                                      THEN Switch 2,3 = ON


                                      Jump to Label: 3


                            Label 3


                            Conditional Branch


                               IF Switch 3.2 = ON


                                       THEN Switch 3.2 = OFF


                                       Jump to Label: 4


                            ELSE


                                       THEN Switch 3.2 = ON


                                       Jump to Label: 4


                            Label: 4


                            Conditional Branch


                               IF Switch 2.2 = ON
                                        THEN Switch 2.2 = OFF


                            ELSE


                                        THEN Switch 2.2 = ON






    STEP 5


            Once you have finished setting up all 9 of your Events, it's time to create an Event that gets it all working!


            Make a new event, and set it to Parallel.


            Add the command to Control Switches, and adjust which switches will be turned on or off (this sets the starting position of the puzzle).
            Once you have that set up, turn the Puzzle Start Switch on.


            On the second page of this Event, set the Condition to Puzzle Start Switch = ON.


            On this page, set up a chain of Coditional Branchs checking to see that every switch (1-10) has been turned off.


            Place a wait here for 60 frames to ensure that all the tiles have changed before the game recognizes a win.
            Play a Music Effect, throw a message on there, and your done! Refer to the pictures in the spoiler below if you need more help setting up this final Event.


            If you want to reset the puzzle, just set the Puzzle Start Switch = OFF when leaving the map.


            The event below will then trigger, reseting your puzzle =]

    Spoiler















            For those of you still having trouble, or those who would like to see this puzzle in action, the download link is below! 


            Thanks again for your time, now get back to making your game! =]


            Windows: [url=http://www.mediafire.com/download/6h8r84bs044kfkm/Lights_Out_Puzzle_WINDOWS.zip]http://www.mediafire.com/download/6h8r84bs044kfkm/Lights_Out_Puzzle_WINDOWS.zip



            Mac: http://www.mediafire.com/download/iiar1bcb6ddn982/Lights_Out_Puzzle_MAC.zip


    本贴来自国际rpgmaker官方论坛作者:GoodSelf处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/lights-out-puzzle.66148/

    本帖子中包含更多资源

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

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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-7-14 14:29 , Processed in 0.062590 second(s), 56 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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