Layered Parallax

Hi, I'm fairly new to VNMaker
and I was hoping to do something like this
https://lemmasoft.renai.us/forums/viewtopic.php?t=47482
Which is layered parallax

which I had previously done on a Ren'py project I made.
I haven't coded in javascript at all, and was wondering how I'd go about taking mouse movement positions, multiplying them by distance variables and applying them to picture, character and Live 2D layers?
Hi, does that tutorial help? http://asset.visualnovelmaker.com/help/index.htm#t=Parallax_Scrolling.htm
Afraid not. That tutorial does show the type of layered scrolling I'm after... but I'm trying to link the effect to a mouse movement in both the x and y coordinates. (And I dont need to loop the effect, I'm just using oversized background plates, So I suspect that I'll need to use 'move background' to constantly set the bg's at absolute positions instead of 'scroll background')

The effect I'm going for will look more like a 2.5d camera that the mouse controls, making it look like its rotating around a fixed plane, like in the examples I linked. (Achieved by taking the mouse positions, and multiplying or dividing them by individual variables)

The tutorial you presented is good, and I've already used it to layer up my backgrounds, and blend some of them with additive screening... but it doesn't contain anything about scripting to link that effect to a live mouse position. (Which is the only part of the process I'm stuck on.)
It might be something similar to this example...


function findScreenCoords(mouseEvent)
{
var xpos;
var ypos;
if (mouseEvent)
{
//FireFox
xpos = mouseEvent.screenX;
ypos = mouseEvent.screenY;
}
else
{
//IE
xpos = window.event.screenX;
ypos = window.event.screenY;
}
document.getElementById("screenCoords").innerHTML = xpos + ", " + ypos;
}
document.getElementById("screenBox").onmousemove = findScreenCoords;



But as I've never used javascript before, this integral part of the VN I'm porting over from Ren'py (because of the live2d integration in VNmaker), is kind of the only thing holding me up.

Original thread: https://forums.rpgmakerweb.com/threads/layered-parallax.114371/