How would I go about moving specific pictures in a direction?

Basically what I'd like to happen is to move some pictures 40 to the left for example, without having to use multiple move pictures since that would probably be inefficient since the game I'm making uses pictures a lot.
Sadly multiple move pictures is the only solution without a plug-in, and even then plug-ins would need code for every picture anyways.
you can try something like this in a scriptcall

var pic = [x,x, x, ,x ,x, x, x ,x ];
pic.forEach(function(pics){
$gamescreen.movePicture(pics, origin, x, y, scaleX, scaleY, opacity, blendmode, duration)})

place x with the picture ID's
replace origin, x, y, scaleX, scaleY, opacity, blendmode, duration to your needs.

Original thread: https://forums.rpgmakerweb.com/threads/how-would-i-go-about-moving-specific-pictures-in-a-direction.120415/