In event commands of RPG Maker MV, we can insert picture by entering its absolute value for its position.
Although it work as it, but it doesn't respond with change on screen size. If I change screen size with plugin, I should re-enter the position value or my picture will appear in wrong position. There are option to assign this position using Javascript variable.
Can anybody show me, how to create variable that makes my picture relative to current screen resolution. I need variable value for "Left", "Center", "Right" for X-value and also "Bottom" for Y-value.
I need something like (it's assumed the picture is anchored at "Upper Left":
Right = [Current screen size] - [Picture Width]
Center = [Current screen size] / 2 - [Picture Width] / 2
If above example is also wrong, please correct me to find ideal value.
Thanks.