As far as I've tested, I haven't encountered any compatibility issues with common plugins.
It can be used in both commercial and non-commercial games.
Since these are simple modifications to native functions, no credit is required.
Changelog:
2025-02-09 Rewritten to further polish the script and make it work directly on map properties
2025-02-08 Fixed issue with not resetting the default screen center when restarting the game from the menu
2025-02-07 First functional version
Version: 0.6 (BETA)
Instructions:
Set center instantly:
- X :
SetCenter X <PosX Value or Variable> - Y :
SetCenter Y <PosY Value or Variable>
- You can use a value between -9 and 9:
SetCenter X -5 - You can use the value of a variable:
SetCenter X v12
Change center with scrolling:
- X :
ScrollCenter X <PosX Value or Variable> <Speed> - Y :
ScrollCenter Y <PosY Value or Variable> <Speed>
- Speed must be set between 1 and 6:
ScrollCenter X 6 1 - The center can slide horizontally and vertically simultaneously:
-
Code:
◆Plugin Command:ScrollCenter X -6 4 ◆Plugin Command:ScrollCenter Y -4 4
Horizontal:
<centerX:value or variable>Vertical:
<centerY:value or variable>If the variable has not been initialized, the value will be converted to zero automatically:
HTML:
<centerX:v33>
Example: