LackeDragon

Veteran
Veteran
Joined
Jun 2, 2012
Messages
32
Reaction score
2
First Language
French
Primarily Uses
RMMV
Hello!

I was playing around with the zoom function included in RPG Maker MV.
I got no problem with it on maps, but it's another question in battle.

I found out that you can zoom in battle by either using :
$gameScreen.startZoom( ) or $gameScreen.StartBattleZoom( )

My problem is, I didn't find something like that in battle.
However, on maps with $gameScreen.startZoom( ) I can move the zoom for a X and Y position.
$gameScreen.StartBattleZoom( ) sure do a proper zoom in battle but there is no way to indicate a position to zoom to it.
Am I missing something?

Thanks!
 

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
3,552
Reaction score
2,668
First Language
EN
Primarily Uses
RMMZ
Maybe it's just me, but I can't find a StartBattleZoom function?

I just quickly experimented with a troop event in a new v1.5.1 project. Condition: Turn 0 and Scope: Battle, with a single script command:
Code:
$gameScreen.startZoom(204, 156, 2.0, 30);
This caused the screen to zoom in x2 to the top-left of the screen as soon as the emerge message closed. Does it work for you? =)
 

LackeDragon

Veteran
Veteran
Joined
Jun 2, 2012
Messages
32
Reaction score
2
First Language
French
Primarily Uses
RMMV
But that's exactly what I tried before..
Wait a second...

...

Oh! All seem clear now!
The $gameScreen.StartBattleZoom( ) was actually a plugin function.
The same plugin was denying the $gameScreen.startZoom(); to do his intended work!
Didn't thought it would deny that!

Thanks for that!
Gonna put that quoted plugin aside now I can do without it. (Yanfly Battle Core + Action Sequence)
 

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
3,552
Reaction score
2,668
First Language
EN
Primarily Uses
RMMZ
Ah, so Action Sequence Pack 3 is the culprit! Good to know. =)

Happy RPG Making! ^_^
 

LackeDragon

Veteran
Veteran
Joined
Jun 2, 2012
Messages
32
Reaction score
2
First Language
French
Primarily Uses
RMMV
I continue the topic because I still have a problem.
$gameScreen.startZoom works perfectly fine to do a zoom in a specific position.
However, it seems unable to do a pan when putting two of them one after the other.
So, is there a similar command to pan the camera, like, I don't know ""$gameScreen.startPan" haha

Thanks in advance!
 

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
3,552
Reaction score
2,668
First Language
EN
Primarily Uses
RMMZ
It looks like there's no function available in the base code to achieve this directly. The zoom coordinates are immediately set to the new ones, which is why it jumps. However, this sort of thing worked fairly well for me in a troop event:
Code:
◆Loop
  ◆If:Script:$gameScreen._zoomX > 200
    ◆Script:$gameScreen._zoomX -= 4;
    ◆Wait:1 frame
    ◆
  :Else
    ◆Break Loop
    ◆
  :End
  ◆
:Repeat Above
[Edit: you could probably figure it out yourself, but the zoom coordinates are $gameScreen._zoomX and $gameScreen._zoomY.]

Alternatively you could go back to Yanfly's Sequence Pack 3...I've had another look at it and maybe something like this would work (I haven't tested it, though):
Code:
◆Script:BattleManager._cameraX = x;
:      :BattleManager._cameraY = y;
:      :$gameScreen.setCameraDuration(frames);
Just replace x, y, and frames with the values you want to use. ^_^
 
Last edited:

LackeDragon

Veteran
Veteran
Joined
Jun 2, 2012
Messages
32
Reaction score
2
First Language
French
Primarily Uses
RMMV
I will test that thanks!
Unfortunately I can't get back ti Yanfly Action Sequence if it needs the battle core as it is not compatible with the others plugins I have.
 

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
3,552
Reaction score
2,668
First Language
EN
Primarily Uses
RMMZ
OK, hope it works for you! =)
 

Latest Threads

Latest Posts

Latest Profile Posts

Finally adding subtitles. My demo release is really close! :kaojoy:

1653799949837.png

ngl i feel like im morbin out
I've made a lot of small changes and fixes over the past couple weeks without actually making any progress on my game...now I'm running out of things I want to change, and I'm terrified that I might have to start being productive again...the horror! D:
I made a mini devlog about the sprite animations I've been working on! You can read it by clicking here


applebuds-dreamtrotter.gif
What happens with this list, is it currently possible to buy any of these RPGMAKER at least those that are for PC?

Forum statistics

Threads
122,207
Messages
1,147,263
Members
160,477
Latest member
tamin21
Top