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

[制作教程] Object Falling from Ceiling or Sky

[复制链接]
累计送礼:
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

    灌水之王

    发表于 前天 13:34 | 显示全部楼层 |阅读模式
    In this tutorial, I made a chest fall to the floor, bounce and land again popping the chest open.
    I have made a very simple map to illustrate.
    There are many ways to trigger the chest. A switch, a puzzle to solve or very simply, a below character player touch event.
    I chose a very simple puzzle of pushing a table into place.








    Leave a couple undeveloped rows of tiles above the picture to place the Chest Event or more for more effect.
    Place 2 chairs or stools with a space between them for the Table to go.

    First, an Event for the Table.
    Table P1
    Create an Event and name it Table
    Priority
    : Same as Characters
    Comments: Play SE Push
    Comments: Set Move Route: Move away from Player





    Table P2
    Conditions
    : Create a Switch: Table in place
    This page will prevent the Push sound if you push on the table after it's been placed.





    Next, the Tile between the chairs
    Create an Event
    Name it Tile
    Nothing else is needed because it is only to set it's location coordinates.




    Now the Chest event
    Create an Even
    t 2 tiles above the map.Name it Chest

    Chest P1
    No graphic
    . It will appear when Table is pushed into place.
    Priority: Above Characters
    Options: Check Through
    That is all for this page.




    Chest P2
    Conditions
    : Creat a Switch: Chest Falls is ON
    Trigger
    : Parallel Process
    Priority: Same as characters
    Options:  Through
    Comments:
    Move Route: as shown
    Control Switch: Create a switch called Chest lands is ON





    Chest P3

    Conditions
    : Chest Lands is ON
    Priority
    : Same as characters
    Trigger: Action Button
    Comments: can be what ever you like.
    Control Self Switch A is ON
    Once the chest has stopped ond opened, just use your action button on it.




    Chest P4

    Conditions
    :Self switch A ON
    Priority:
    Same as characters





    Alternative Effect

    If you prefer not to have the bounce and the chest open, and would prefer to just have it land, then,  delete all move route entries in Chest Page 2 after the first SE :Earth3 entry.
    Page 2 would then look like this:







    Chest P3 would then look like this:
    This can be copied from a Quick Event Creation:Chest




    Chest P4 will remain the same.

    Now, on the ceiling tiles , there are 2 Events.
    The one on the left will be to keep track of the positions for the Table and the Tile
    The one on the right will be to determine what happens when the Table and Tile Locations are the same.

    Variables

    Open an Event
    name it Variables
    Trigger
    : Parallel Process
    Under Comments:
    Click on Control Variables. You will come to the small page below.
    Where it says Single, click on the three dots and create a new variable Call it Tile X.
    Operation: Set
    Operand:Click on Game Data.
    A new page will open.






    On the page below, use the drop down arrow and select Tile





    On the page below click both OK buttons and then click apply at the bottom of the Event sheet..





    The page below is saying that you are keeping track of Tile's Map x location which is why there is an ('s) between
    Tile and Map x





    Repeat this process three more times
    You will need to create new Variables for each.
    Make sure you start each  entry on the very next @ line.

    Tile y             Tile  's     Map y
    Table x         Table 's    Map x
    Table y         Table 's    Map y

    When finished, the page will look like this.




    Now finally. the Conditional Branches

    Branches P1

    Open an Event. Call it Branches or Conditional Branches.
    Trigger: Parallel Process





    Branches P2

    Click on the Variable directly under Switch
    Use the three dots and find Table x
    Make sure Equal to is showing.
    Under that, Click Variable use the three dots and select Tile X
    Make sure "Set handling when conditions are not met" is NOT Checked

    This is saying that Table x and Tile x will be occupying the same tile.
    Click OK and Apply.

    On the very next line@ Repeat the same process only this time, Table y Equal to Tile y
    Once again, Make sure "Set handling when conditions are not met" is NOT Checked


    Now, the Event is saying  that Table x and Tile x are occupying the same tile and the Table y and Tile y are occupying the same tile.
    So, now that those two things are true, something will happen.
    Control Switches  Table in Place is ON.

    The finished page will look like this:




    That is it. Place your character and push the Table into place.
    Any problem or need help, leave message on the page and I'll get back asap. I check at least once a day.
    Thanks


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

    本帖子中包含更多资源

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

    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.077166 second(s), 55 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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