The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: Flap_Jack on May 03, 2008, 01:07:04 AM

Title: [RESOLVED] Fades
Post by: Flap_Jack on May 03, 2008, 01:07:04 AM
Hey,

How do I fade a picture? I have an event that runs as a parallel process...it goes like this:

@>Change Screen Color Tone (-255,-255,-255,0),@0
@>Wait: 20 frame(s)
@>Play BGM: 'TheBattle', 100, 100
@>Wait: 55 frame(s)
@>Change Screen Color Tone (0,0,0,0),@20
@>Show Picture: 1, 'presents', Upper Left (0,0),(100%,100%),255,Normal

"presents" is the name of the picture I'm showing, it's a jpg file. Now, how do I make this picture fade in and fade out? And then, any other pictures I want to show after that?

- Tommy
Title: Re: Fades
Post by: Demonic Blade on May 03, 2008, 11:11:21 AM
EDIT: Okay!

Fist Show the picture but make the zoom x and y at 0.
Then wait 2 frames (I recommend 1 or 2, to make the fading as smooth as possible)
Now Move Picture to increase the x and y zoom of a number (20, say)
(I recommend 1 or 2, to make the fading as smooth as possible)
And continue on until the x and y zoom is at 100 (or larger, whatever you want it to be).

Note that I tested the above making the time it took each Move Picture command 1 Frame!!
Title: Re: Fades
Post by: 006 on May 03, 2008, 11:42:00 AM
Is this what you mean?
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg167.imageshack.us%2Fimg167%2F7229%2Fpresentcopyra7.png&hash=658f9945e539483e9592b1871cac3db8c5f12a62)
Title: Re: Fades
Post by: Demonic Blade on May 03, 2008, 01:30:35 PM
No, but nearly. At the bottom left corner of the window that pops up to edit a Move Event command, it says
"Zoom" and then X and Y. It's starts at 100%, and the reason for opacity is that when at 0% not all pictures are invisible. (Or where you asking FlapJack)?
Title: Re: Fades
Post by: Flap_Jack on May 04, 2008, 12:16:26 AM
I'm not sure I get what you guys are saying, at least...I think. Lemme get this straight, you're saying I have to manually input a command or whatever in the event for each opacity level? There's no way to just tell it to fade in?

Doing it that way won't look very good cuz you'll get jumps in between fades. I've played an RMXP game where there are A LOT of image fades, and it looks quite good, I just donno how to do that.
Title: Re: Fades
Post by: Demonic Blade on May 04, 2008, 05:17:57 AM
Yeah, but changing the opacity would be the best thing probably, and also (maybe) the colour tone. I have an introduction script for VX somewhere, where I kind of fade in a picture. I'll take a look at it... (converting it to xp of course)
Title: Re: Fades [Resolved]
Post by: Flap_Jack on May 04, 2008, 05:43:41 PM
I figured it out with the "Move Picture" command.
Title: Re: [RESOLVED] Fades
Post by: Demonic Blade on May 05, 2008, 02:59:17 PM
Greats!