じ☆ve冰风 发表于 5 天前

DCupu Eventing - Camera Zoom v1.1

What is this about?
One of my experiment that allow smooth "zooming" feature via eventing. Modified to be user friendly and easy to study.



Requirement

[*]Apprentice knowledge of how script call works in event.
[*]Understanding of how parallel common event works.
[*]A switch (Zooming Mode), 2 variables (Targeting, Scale control), and a parallel common event.
[*]Difficulty level : Apprentice
Changelog
V1.1
* Use single variable to control the screen scale any time.
* Fix : Issue when trying to zoom outside screen reach.
* New : Smooth scroll to new target within screen reach.
V1.0
* Use two switches to "zoom in" and "zoom out".
* Smooth zooming.               
Click to expand...

Spoiler: How to useSetup in parallel common event.



Controlling screen scaling using single variable while "Zooming Mode" is on



Download sample
DCupu - Camera Zoom V1.1 (5mb / GD) NEW!
DCupu - Camera Zoom V1.0 (5mb / GD)

Points to be noted

[*]It's actually could be done with just a single line of script call :
$gameScreen.startZoom(screenX, screenY, scale, duration);
[*]It's designed to be neat, convenient, and user friendly. You only need to use a variable to control the scale.
[*]It's designed to be "smooth". Thus explaining why it had to use parallel process.
[*]Recommended usage for temporary use, such as mid cutscene or map transfer.
[*]In the end this is done using only eventing. If you want real camera plugin, there are lots of them out there. Unless you participate in certain rpg maker challenge where plugins are unallowed.
[*]This one is free to use. I made it for study purpose.

At last, let me know if there's something you don't understand or what would you like to suggest to improve it.

Thank you ~


本贴来自国际rpgmaker官方论坛作者:Kuro DCupu处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/dcupu-eventing-camera-zoom-v1-1.117818/
页: [1]
查看完整版本: DCupu Eventing - Camera Zoom v1.1