- ╔════╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═════╗ 
- ║ ╔══╩═══╩═══╩═══╩═══╩═══╩═══╩═══╩═══╩═══╩═══╩═══╩═══╩═══╩═══╩═══╩═══╩═══╩═══╗ ║ 
- ╠─╣                            强化镜头功能                             ╠─╣ 
- ╠─╣                           by RPG Maker Source.                           ╠─╣ 
- ╠─╣                          [url]www.rpgmakersource.com[/url]                          ╠─╣ 
- ║ ╚══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╝ ║ 
- ╠════╩═╤═╩═╤═╩═╤═╩═╤═╩═╤═╩═╤═╩═╤═╩═╤═╩═╤═╩═╤═╩═╤═╩═╤═╩═╤═╩═╤═╩═╤═╩═╤═╩═╤═╩═════╣ 
- ║ ┌────┴───┴───┴───┴───┴───┴───┴───┴───┴───┴───┴───┴───┴───┴───┴───┴───┴─────┐ ║ 
- ╠─┤ Version 1.0.1                   13/12/14                        DD/MM/YY ├─╣ 
- ║ └────┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬─────┘ ║ 
- ╠══════╧═══╧═══╧═══╧═══╧═══╧═══╧═══╧═══╧═══╧═══╧═══╧═══╧═══╧═══╧═══╧═══╧═══════╣ 
- ║                                                                              ║ 
- ║               This work is protected by the following license:               ║ 
- ║     ╔══════════════════════════════════════════════════════════════════╗     ║ 
- ║     │                                                                  │     ║ 
- ║     │ Copyright ? 2014 Maker Systems.                                  │     ║ 
- ║     │                                                                  │     ║ 
- ║     │ This software is provided 'as-is', without any kind of           │     ║ 
- ║     │ warranty. Under no circumstances will the author be held         │     ║ 
- ║     │ liable for any damages arising from the use of this software.    │     ║ 
- ║     │                                                                  │     ║ 
- ║     │ Permission is granted to anyone to use this software on their    │     ║ 
- ║     │ free or commercial games made with a legal copy of RPG Maker     │     ║ 
- ║     │ VX Ace, as long as Maker Systems - RPG Maker Source is           │     ║ 
- ║     │ credited within the game.                                        │     ║ 
- ║     │                                                                  │     ║ 
- ║     │ Selling this code or any portions of it 'as-is' or as part of    │     ║ 
- ║     │ another code, is not allowed.                                    │     ║ 
- ║     │                                                                  │     ║ 
- ║     │ The original header, which includes this copyright notice,       │     ║ 
- ║     │ must not be edited or removed from any verbatim copy of the      │     ║ 
- ║     │ sotware nor from any edited version.                             │     ║ 
- ║     │                                                                  │     ║ 
- ║     ╚══════════════════════════════════════════════════════════════════╝     ║ 
- ║                                                                              ║ 
- ║                                                                              ║ 
- ╠══════════════════════════════════════════════════════════════════════════════╣ 
- ║ 1. VERSION HISTORY.                                                        ▼ ║ 
- ╠══════════════════════════════════════════════════════════════════════════════╣ 
- ║                                                                              ║ 
- ║ ? Version 1.0.0, 08/12/14 - (DD/MM/YY).                                      ║ 
- ║                                                                              ║ 
- ║ ? Version 1.0.1, 13/12/14 - (DD/MM/YY).                                      ║ 
- ║                                                                              ║ 
- ╠══════════════════════════════════════════════════════════════════════════════╣ 
- ╠══════════════════════════════════════════════════════════════════════════════╣ 
- ║ 2. USER MANUAL.                                                            ▼ ║ 
- ╠══════════════════════════════════════════════════════════════════════════════╣ 
- ║                                                                              ║ 
- ║ ┌──────────────────────────────────────────────────────────────────────────┐ ║ 
- ║ │ ■ 说明.                                                          │ ║ 
- ║ └┬┬┬┬──────────────────────────────────────────────────────────────────┬┬┬┬┘ ║ 
- ║                                                                              ║ 
- ║  功能如下: 
-     1、镜头平滑移动 
-     2、镜头跟随事件 
-     3、镜头固定                                  ║ 
- ║                                                                              ║ 
- ║ ┌──────────────────────────────────────────────────────────────────────────┐ ║ 
- ║ │ ■ Configuration.                                                         │ ║ 
- ║ └┬┬┬┬──────────────────────────────────────────────────────────────────┬┬┬┬┘ ║ 
- ║                                                                              ║ 
- ║  "How do I change the strength of the deceleration effect?"                  ║ 
- ║  Right click anywhere in the script editor and select "Find" (or CTRL + F)   ║ 
- ║  search for "Deceleration_Value" (without quotation marks).                  ║ 
- ║                                                                              ║ 
- ║  You will see something like "Deceleration_Value = 22"                       ║ 
- ║                                                                              ║ 
- ║  Set the number after the equality sign to any numer you like, bigger or     ║ 
- ║  equal than 1. The bigger the number, the stronger the deceleration effect   ║ 
- ║  and thus the slower the camera movement when following the player. Small    ║ 
- ║  numbers result in a faster deceleration, default value is 22.               ║ 
- ║                                                                              ║ 
- ║ ┌──────────────────────────────────────────────────────────────────────────┐ ║ 
- ║ │ ■ 具体功能.                                                 │ ║ 
- ║ └┬┬┬┬──────────────────────────────────────────────────────────────────┬┬┬┬┘ ║ 
- ║                                                                              ║ 
- ║  可用脚本:                                 ║ 
- ║                                                                              ║ 
- ║  ┌───────────────────────────────┐                                           ║ 
- ║  │ ms_pro_cam_wait_for_scrolling │                                           ║ 
- ║  ├───────────────────────────────┴────────────────────────────────────────┐  ║ 
- ║  │ 开启:等待直至镜头移动结束 
-        意思是镜头移动结束后,才会执行下一个事件指令 
-        对默认的地图滚动、本脚本中镜头移动的呼出脚本两者都有效.                                                    │  ║ 
- ║  └────────────────────────────────────────────────────────────────────────┘  ║ 
- ║  ┌────────────────────────────────────┐                                      ║ 
- ║  │ ms_pro_cam_center_at(x, y, 时间) │                                      ║ 
- ║  ├────────────────────────────────────┴───────────────────────────────────┐  ║ 
- ║  │ 镜头中心移动到(x,y)坐标处,时间的单位是帧 
- ║  │                                                                        │  ║ 
- ║  │ 注意: 同样适用于循环地图. 通常情况下,如果你从地图左上角移动镜头到左下角, 
-        镜头会经过画面中心处.    │  ║ 
- ║  │ 但如果你的地图是循环地图,镜头会寻找最短的移动路径,不经过画面中心              │  ║ 
- ║  │                                                                        │  ║ 
- ║  │ 例子: 镜头中心移动到(44,44)处,用时6秒     │  ║ 
- ║  │                                                                        │  ║ 
- ║  │ ms_pro_cam_center_at(44, 44, 360)                                      │  ║ 
- ║  └────────────────────────────────────────────────────────────────────────┘  ║ 
- ║  ┌───────────────────────────────────────┐                                   ║ 
- ║  │ ms_pro_cam_center_at_char(id, 时间) │                                   ║ 
- ║  ├───────────────────────────────────────┴────────────────────────────────┐  ║ 
- ║  │ 移动到目标处             │  ║ 
- ║  │                                                                        │  ║ 
- ║  │ (*) id = -1 时代表玩家, 0 代表当前事件, 1 或以上代表事件id.                               │  ║ 
- ║  └────────────────────────────────────────────────────────────────────────┘  ║ 
- ║  ┌──────────────────────────────────────────┐                                ║ 
- ║  │ ms_pro_cam_focus_on(id, 可取消?, 按键) │                                ║ 
- ║  ├──────────────────────────────────────────┴─────────────────────────────┐  ║ 
- ║  │ 镜头跟随目标                                    │  ║ 
- ║  │                                                                        │  ║ 
- ║  │ 例子,镜头跟随22号事件: ms_pro_cam_focus_on(22)                                    │  ║ 
- ║  │                                                                        │  ║ 
- ║  │ 镜头跟随玩家:                 │  ║ 
- ║  │ ms_pro_cam_focus_on(-1)                                                │  ║ 
- ║  │                                                                        │  ║ 
- ║  │ (*) "可取消" 替换为 true 或 false,代表能否通过一个按键取消镜头跟随,并 
-           自动将镜头目标跟随回玩家│  ║ 
- ║  │                                                                        │  ║ 
- ║  │ (*) "按键"是取消跟随镜头的按键,仅在"可取消?"设定为true时有效,默认为 :CTRL                                                      │  ║ 
- ║  │                                                                        │  ║ 
- ║  │ 默认可用按键:                         │  ║ 
- ║  │                                                                        │  ║ 
- ║  │ :DOWN :LEFT :RIGHT :UP (方向键)                                    │  ║ 
- ║  │ :A :B :C :X :Y :Z :L :R      │  ║ 
- ║  │ :SHIFT :CTRL :ALT                                                      │  ║ 
- ║  │ :F5 :F6 :F7 :F8 :F9                                                    │  ║ 
- ║  └────────────────────────────────────────────────────────────────────────┘  ║ 
- ║  ┌─────────────────────────────────────┐                                     ║ 
- ║  │ ms_pro_cam_character_on_screen?(id) │                                     ║ 
- ║  ├─────────────────────────────────────┴──────────────────────────────────┐  ║ 
- ║  │ 检查事件是否在画面中.                              │  ║ 
- ║  │                                                                        │  ║ 
- ║  │ 可以用于分支条件中,例如检查代表小偷的事件是否在画面中,如果不在玩家 
-        抓贼失败这样 
-   
-        当然,id和之前一样,也可以代表玩家.                 │  ║ 
- ║  └────────────────────────────────────────────────────────────────────────┘  ║ 
- ║  ┌──────────────────────┐                                                    ║ 
- ║  │ ms_pro_cam_reset_str │                                                    ║ 
- ║  ├──────────────────────┴─────────────────────────────────────────────────┐  ║ 
- ║  │ 设定镜头移动的速度为默认值 │  ║ 
- ║  └────────────────────────────────────────────────────────────────────────┘  ║ 
- ║  ┌───────────────────────┐                                                   ║ 
- ║  │ ms_pro_cam_str(数值) │                                                   ║ 
- ║  ├───────────────────────┴────────────────────────────────────────────────┐  ║ 
- ║  │ 设定镜头移动加速度                                                             │  ║ 
- ║  │                                                                        │  ║ 
- ║  │ 数值越小,移动速度越快 (1 为默认速度)                                 │  ║ 
- ║  └────────────────────────────────────────────────────────────────────────┘  ║ 
- ║  ┌──────────────────────────────────────┐                                    ║ 
- ║  │ ms_pro_cam_ignore_player(true/false) │                                    ║ 
- ║  ├──────────────────────────────────────┴─────────────────────────────────┐  ║ 
- ║  │ 镜头是否固定在地图上,不跟随玩家移动       │  ║ 
- ║  └────────────────────────────────────────────────────────────────────────┘  ║ 
- ║  ┌────────────────────────┐                                                  ║ 
- ║  │ ms_pro_cam_lock_camera │                                                  ║ 
- ║  ├────────────────────────┴───────────────────────────────────────────────┐  ║ 
- ║  │ 锁定镜头                                                         │  ║ 
- ║  └────────────────────────────────────────────────────────────────────────┘  ║ 
- ║  ┌──────────────────────────┐                                                ║ 
- ║  │ ms_pro_cam_unlock_camera │                                                ║ 
- ║  ├──────────────────────────┴─────────────────────────────────────────────┐  ║ 
- ║  │ 解锁镜头                 │  ║ 
- ║  └────────────────────────────────────────────────────────────────────────┘  ║ 
- ║                                                                              ║ 
- ╠══════════════════════════════════════════════════════════════════════════════╣ 
- ╠══════════════════════════════════════════════════════════════════════════════╣ 
- ║ 3. NOTES.                                                                  ▼ ║ 
- ╠══════════════════════════════════════════════════════════════════════════════╣ 
- ║                                                                              ║ 
- ║  Have fun and enjoy!                                                         ║ 
- ║                                                                              ║ 
- ╠══════════════════════════════════════════════════════════════════════════════╣ 
- ╠══════════════════════════════════════════════════════════════════════════════╣ 
- ║ 4. CONTACT.                                                                ▼ ║ 
- ╠══════════════════════════════════════════════════════════════════════════════╣ 
- ║                                                                              ║ 
- ║  Keep in touch with us and be the first to know about new releases:          ║ 
- ║                                                                              ║ 
- ║  [url]www.rpgmakersource.com[/url]                                                      ║ 
- ║  [url]www.facebook.com/RPGMakerSource[/url]                                             ║ 
- ║  [url]www.twitter.com/RPGMakerSource[/url]                                              ║ 
- ║  [url]www.youtube.com/user/RPGMakerSource[/url]                                         ║ 
- ║                                                                              ║ 
- ║  Get involved! Have an idea for a system? Let us know.                       ║ 
- ║                                                                              ║ 
- ║  Spread the word and help us reach more people so we can continue creating   ║ 
- ║  awesome resources for you!                                                  ║ 
- ║                                                                              ║ 
- ╚══════════════════════════════════════════════════════════════════════════════╝)