DCupu Eventing - Camera Zoom v1.1

Kuro DCupu

Trust me, I'm a veteran RMer
Veteran
Joined
Jul 6, 2014
Messages
449
Reaction score
1,402
First Language
Indonesia
Primarily Uses
RMMV
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.
Setup in parallel common event.
1588770608347.png
Controlling screen scaling using single variable while "Zooming Mode" is on
1588770630997.png

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 ~
 
Last edited:
Joined
May 5, 2020
Messages
1
Reaction score
1
First Language
English
Primarily Uses
RMMV
Hi. I tried your script. However, there was a problem when I was trying to talk to the actor in the first map of your game. If a player were to talk to the actor while zooming out, the zoom event would break.
In the video I linked, the top right actor becomes visible while the switch 'zoom out' is on. The top left is while 'zoom in' is on.
EDIT: Also, it wasn't show in the video, but after the zoom event breaks, the 'zoom in' actor would appear on the screen for a frame when 'zoom in' switch is on.
 
Last edited:

Kuro DCupu

Trust me, I'm a veteran RMer
Veteran
Joined
Jul 6, 2014
Messages
449
Reaction score
1,402
First Language
Indonesia
Primarily Uses
RMMV
Hi. I tried your script. However, there was a problem when I was trying to talk to the actor in the first map of your game. If a player were to talk to the actor while zooming out, the zoom event would break.
In the video I linked, the top right actor becomes visible while the switch 'zoom out' is on. The top left is while 'zoom in' is on.
EDIT: Also, it wasn't show in the video, but after the zoom event breaks, the 'zoom in' actor would appear on the screen for a frame when 'zoom in' switch is on.
Thank you for your feedback!
I'm aware of such issue.
Curently you may fix the issue by :
Removing this script check condition :
1588668834620.png
So it should've looked like this :
1588668927861.png
But in exchange, only the zoom out will be no longer smooth...

I'm working on improving this zooming feature to be more flexible, yet maintain its user friendly.
For that, I've prepared an upgraded version.
Perhaps I will publish it tonight.
 

Kuro DCupu

Trust me, I'm a veteran RMer
Veteran
Joined
Jul 6, 2014
Messages
449
Reaction score
1,402
First Language
Indonesia
Primarily Uses
RMMV
UPDATE!
Eventing camera zoom are now real-time on scene map. It's better, but risky. For safety measure, you may also turn ON / OFF the feature anytime.

* Use single variable to control the screen scale any time. Better than using 2 switches.
* Fix : Issue when trying to zoom outside screen reach.
* New : Smooth scroll to new target within screen reach.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

is there a script call that return how much turn has passed in battle?
Does anyone find this hard to read?

Enjoying my weekend at home to stay Covid free. How is everyone else doing?
If you enjoy speed mapping for RPG Maker MV check out my YouTube Channel. My latest video includes custom made tiles which makes a simple map look dynamic!

Check out my short game Hikari's World! : Chapter I, on itch.io/games.

Forum statistics

Threads
100,603
Messages
977,726
Members
132,214
Latest member
qwertyben
Top