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

[制作教程] *Last Update - 8/8/14* Day and Night cycle using a common event!

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

    连续签到: 2 天

    [LV.7]常住居民III

    4456

    主题

    864

    回帖

    2万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 前天 08:13 | 显示全部楼层 |阅读模式
    This is the old tutorial from October 12, 2013 - August 7, 2014. You may continue to read it if you wish, however most if not all of the information is old and is not qualified enough to be a decent working tutorial.

    SpoilerDay and Night Cycle Tutorial

    Introduction:

    Have you ever wanted to use a day and night system inside your game?

    Maybe have it effect when you can enter shops, or even how your story line goes.

    If you are a RPG Maker user then you know scripts should always be a last resort.

    Why stuff your game with someone's script when you can easily do this yourself!

    This tutorial is good for VXA and VX.

    Time of Day:

    Everybody knows there are at least 4 Major time of day cycles

    Dawn,Day,Dusk,Night So you need 4 different tint tones.

    Now, you can use VXA's preset tints or make your own.

    What will be needed:

    1 variable

    1 common event

    4 switches (optional)

    4 tint settings

    Setting up your variable:

    You may name this to whatever you like!

    But for the tutorial lets call it time cycle.

    Set this to 0

    [/url]



    Common Event:

    This is the longest part. But it should only take 1min and 30sec to set up.

    Here set up all your separate conditional branches with your tints and variable instants. 

    Remember the switches are optional and I will explain why. Also make sure to un-check

    Wait for completion when setting up your tints.

    Setup the cycle starters with the numbers 6, 12, 18 ,24 (28 is the cycle reset)

    Remember after the variable has increased 28 times make sure you reset it to 4

    to keep the pattern even.

    SpoilerIgnore that it says day cycle it supposed to be time cycle

    [url=https://forums.rpgmakerweb.com/attachments/tut2-png.8707/]


    [/url]




    Switches (Optional Feature):

    Though not required I do recommend it.

    Lets say you have a weapon shop.

    you can set up event pages when certain

    switches are on. Like when the shop is

    closed. Nobody works a 24/7 shift.

    Here is an example.

    Spoiler[url=https://forums.rpgmakerweb.com/attachments/tut-4-png.8709/]




    On page 1 set up your normal door event and then on page 2,

    If the night switch is on then you will get a message saying its closed.

    How to get the actual cycle to work:

    So everything on the list is checked off we have all our branches set up etc.

    Now how do we get the cycle going?

    Simple. When moving maps we can add +1 to the variable and then call the

    Common Event.

    Spoiler[/url]




    Moving to maps that go inside houses or dungeons:

    Just about every RPG has at least 1 House and/or 1 Dungeon.

    Sometimes it may look silly to have a sunset tint inside your House and/or 

    Dungeon. We need to make the cycle continue but not change the effect

    inside the house because we still want the simulation of day and night.

    So this is how we implement it.

    When entering a home, add the variable like before but do not call the common event.

    Also make sure you use the fade out screen and change your tint back to normal or

    (0, 0, 0, 0)

    and then fade in the screen otherwise it will look very weird.

    Spoiler[url=https://forums.rpgmakerweb.com/attachments/tut-6-png.8712/]




    Exiting a home is the same way follow the steps above but now you may call the

    common event again.

    Spoiler[/url]



    Choosing a time of day when you begin your game:

    You don't have to start the cycle at morning. You may

    begin your story at anytime of the day or night.

    This part may sound a bit tricky but it isn't.

    Do you recall those numbers you made?

    6 , 12 , 18 , 24?

    Those are your cycle starters

    all you have to do is start on a blank map. (all black)

    Set your variable to one of those numbers. Then call

    your common event. And transfer your player. For 

    best results do it in this order shown here.

    Spoiler[url=https://forums.rpgmakerweb.com/attachments/tut-last-png.8714/]




    Ending: 

    Almost anything is possible with eventing. This is a good starting structure for new players or experienced players. Feel free to like this post if the tutorial was helpful! Comment if you any

    questions or want to share your thoughts about the tutorial. See you later!

     ​

    This tutorial is the new one from August 8, 2014 - Now. It's a demo with all the proper information that works fully using 1 variable only. It is advised that you follow and study this demo as the old tutorial is no longer supported and anyone following it will not receive help or feedback.

    SpoilerDownload - Day and Night Cycle Demo- Size 1.43mb






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

    本帖子中包含更多资源

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

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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-7-14 15:48 , Processed in 0.138078 second(s), 53 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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