How to change picture opacity only?

stramin

Veteran
Veteran
Joined
Nov 4, 2012
Messages
148
Reaction score
65
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,732
Reaction score
14,001
First Language
English
Primarily Uses
RMMV
$gameScreen.picture(id)._opacity = 0
 

stramin

Veteran
Veteran
Joined
Nov 4, 2012
Messages
148
Reaction score
65
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,732
Reaction score
14,001
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
148
Reaction score
65
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);
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

After hearing Wataten's opening several times and knowing what this anime is about, I don't think I like moe anymore.
So I am working on a big DLC package for my game.... and it will add a new intro and extend the ending of the base game, while of course adding additional content to the game... Yeah, that should work! lol
I'm stuck, I'm making some of Mr. N's Dialogue but I can't finish his full Dialogue...heres what I got now [this is the part I'm stuck on] "You treat me like a
bug, I'M SICK OF IT, you had me make these...abominations...well, now..." and at the "Well, now...' part I'm stuck at, anyone got Ideas?

Forum statistics

Threads
107,548
Messages
1,030,428
Members
139,673
Latest member
WDRS
Top