How to change picture opacity only?

stramin

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

stramin

Veteran
Veteran
Joined
Nov 4, 2012
Messages
167
Reaction score
73
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,838
Reaction score
14,027
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
167
Reaction score
73
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 Profile Posts

Ami
--- Remake ---

Hero: Hey,look! Some Artist will Remake us to 3D!
M.Knight: Really? Then i hope they make me so Cool & Handsome
Heroine: I hope they make me Cute & Sexy,too
(6 Months Later,The 3D Model Are Revealed With Unexpected Yet Horrible Model)
Hero: (Spit The Water)
M.Knight: What the Hell?!
Heroine: I'm Dissapointed...
my battle system is REALLY coming together. I can already see strategies between 2 of my party members forming lol. helps that battles are 2 at a time. but the combo of these two is really fun.
@taarna23's status just made me realise I haven't had any scam calls since that guy who hung up on me before he even began reading his script. How quiet it's been ... they were pretty much the only people who ever called!

Forum statistics

Threads
107,777
Messages
1,032,096
Members
139,921
Latest member
BlackSaori
Top