How to change picture opacity only?

stramin

Veteran
Veteran
Joined
Nov 4, 2012
Messages
155
Reaction score
68
First Language
spanish
Primarily Uses
N/A
I have to make a lot of images transparent for a while and make them visible again later, but I want to keep them in the same position.

I have a script like this:

JavaScript:
// movePicture(pictureId, origin, x, y, scaleX, scaleY, opacity, blendMode, duration)
for(var i=1;i<=30;i++) $gameScreen.movePicture(i, 0, x, y, 100, 100, 0, 0, 10);

but I don't know how to set x and y.

Is there any way to change picture opacity only?

Maybe a function liker this?: $gameScreen.changeOpacity()
 
Last edited:

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
40,766
Reaction score
14,009
First Language
English
Primarily Uses
RMMV
$gameScreen.picture(id)._opacity = 0
 

stramin

Veteran
Veteran
Joined
Nov 4, 2012
Messages
155
Reaction score
68
First Language
spanish
Primarily Uses
N/A
Thank you, but for some reason is not working, I did it this way:

JavaScript:
for(var i=1;i<=30;i++)$gameScreen.picture(i)._opacity=0;
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
40,766
Reaction score
14,009
First Language
English
Primarily Uses
RMMV
for (var i = 1; i <= 30; i++) { $gameScreen.picture(i)._opacity = 0 }
 

stramin

Veteran
Veteran
Joined
Nov 4, 2012
Messages
155
Reaction score
68
First Language
spanish
Primarily Uses
N/A
Thank you Shaz, but it didn't work.

I finally solved the problem!

If anyone is having this problem, here is a script to change pictures position and opacity separately:

JavaScript:
for(var i=1;i<=30;i++)$gameScreen.changeOpacity(i,0,10);
 

Latest Threads

Latest Posts

Latest Profile Posts

Finally feel well enough to sketch. Took twenty minutes to find the tablet. Another ten for the cable. Only to discover that my Clip Studio Pro license has expired. Yup. Gonna be one of those days.
Is there a way to add pictures to profile posts?
I just graduated from high school yesterday!
I accidently wipe out my entire hdd...
Hey everyone, I'm going to do winners announcement post for the OCCIII after we get the edit bar fixed. It's kind of hard to do any announcement without formatting! Thanks for the patience.

Forum statistics

Threads
107,651
Messages
1,031,162
Members
139,775
Latest member
SkullMetalLord
Top