Fade in Fade out picture.

Status
Not open for further replies.

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,078
Reaction score
2,654
First Language
Greek
Primarily Uses
RMMZ
[NO need for plugin]
◆Move Picture:#1, Center (408,312), (100%,100%), 255, Normal, 30 frames (Wait)
Show picture with opacity 0
Move picture at the same spot and opacity to 255 and give it as many frames as you want the fadein to last.
Thanks @caethyril for the answer.

How about a plugin command that can show a picture (picture gets a number to collaborate with the rest of MV Event Commands to be able to move it around) at a specific origin, with a fade in effect, and another plugin command that can fade out and erase the picture? I can't believe we don't have such a basic thing. :p
 
Last edited:

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
1,681
Reaction score
1,095
First Language
Portuguese - Br
Primarily Uses
RMMZ
Hi!
You can use the PictureWipe.js to make that.
Its a plugin that came with the Rm Mv by default. But here(steam version) it is in Dlc/KadokawaPlugins folder.

But also, you can do this with the oppacity comand of the picture, but it requires to you hit the right time change the opacity amd right frames for it. ^^
 

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,078
Reaction score
2,654
First Language
Greek
Primarily Uses
RMMZ
Oh. Just found the folder, let me check this out and will edit this post.

Hmmm...
◆Plugin Command:PictureWipe 1 circle in 180

This should had made the picture fading in for 3 seconds. It shows up instantly though.

◆Text:None, Window, Bottom
:Text:Test.
◆Plugin Command:PictureWipe 1 circle in 180
◆Wait:60 frames
◆Show Picture:#1, CH_A_M_01_01, Upper Left (136,214), (100%,100%), 255, Normal
◆Text:None, Window, Bottom
:Text:Bleh


Am I doing this wrong?
 
Last edited:

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,078
Reaction score
2,654
First Language
Greek
Primarily Uses
RMMZ
Hmm, meanwhile while I will be waiting for the plugin solution insights, I think I found a workaround without a plugin. It is a LITTLE messy, but it does the trick.
Please people pardon my double post, because I provide a solution:

Show Picture:#1, CH_A_M_01_01, Upper Left (136,214), (100%,100%), 0, Normal
Control Variables:#0018 Opacity A = 0
Loop
Script:
Script:$gameScreen._pictures[1]._opacity +=30
Control Variables:#0018 Opacity A += 30
Wait:10 frames
If:Opacity A ≥ 255
◆Control Variables:#0018 Opacity A = 255
◆Break Loop

:End


:Repeat Above


What I did.
I have set up three vaariables.
Opacity A, Opacity B, and Opacity C, So I can handle the opacity of three different pictures at the same time.
I have shown the picture with ID = 1 at the position I wanna show it, with Opacity = 0.
This will show nothing but the picture exists now.
Red line initializes the variable to 0.
I start a loop.
Orange part: A script command adds to the existing picture's opacity 30.
Variable follows this change.
Blue part: If the variable (thus also the opacity) gets more than 255, then we set it to 255 and we break the loop.
Otherwise it loops.

I leave the variable as it is, since the fade out will need this variable again.
As for the Opacity value, if it exeeds 255 the engine limits it to 255, so yeah, no problem there.
 
Last edited:

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,058
Reaction score
1,483
First Language
EN
Primarily Uses
RMMZ
Surely I'm missing something here. Why not just use the event commands? Or are you just asking for a shortcut? :kaoswt2:
Code:
◆Show Picture:#1, gauge, Upper Left (408,312), (100%,100%), 0, Normal
◆Move Picture:#1, Center (408,312), (100%,100%), 255, Normal, 30 frames (Wait)
◆Wait:180 frames
◆Move Picture:#1, Center (408,312), (100%,100%), 0, Normal, 30 frames (Wait)
◆Erase Picture:#1
I.e. show at opacity 0, move to same location at opacity 255 over 30 frames, wait 3 seconds, move to same location at opacity 0 over 30 frames, erase. If you need the wait time to be parallel, use a parallel event. If you need to wait for all pictures to fade away again, add up the wait times or use switches and a check loop:
Code:
◆Loop
  ◆If:Picture 1 Done is ON
    ◆If:Picture 2 Done is ON
      ◆Break Loop
      ◆
    :End
    ◆
  :End
  ◆Comment:Check 10 times per second.
  ◆Wait:6 frames
  ◆
:Repeat Above
 

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,078
Reaction score
2,654
First Language
Greek
Primarily Uses
RMMZ
◆Move Picture:#1, Center (408,312), (100%,100%), 255, Normal, 30 frames (Wait)

Really now? Wow. That is really brilliant!
So you can move the picture at the same spot, delay some fps and it will GRADUALLY change the opacity?
I wish I could thought of that. Wow!!!

Surprisingly simple!!!
Thank you!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts


My only regret is the portal mirror effect is too subtle to show up in these GIFs. It probably just needs more sparkles. :LZSwink:
Microsoft: Hey, let's waste money advertising the Xbox Series X when nobody has any in stock, we don't seem to be making more, we aren't taking preorders and you can't get on a waiting list. BEST. IDEA. EVER.
So I'm practicing ITC with a spirit box, and decide to try to contact my deceased soulmate. It actually gave me multiple identifiers. Me, still a bit skeptical, asked aloud "Fine but does he still love me?" and the box spoke and printed the word "Forever" at the same time. Been a mess of tears since. :kaocry:
Been scratching away at my game and making progress, but just had a revelation. I'm working in full screen and adjusting all my pictures accordingly, but will they resize if someone's screen is smaller?? I hope this doesn't turn out to be a problem later.

Forum statistics

Threads
105,635
Messages
1,015,171
Members
137,307
Latest member
MrKaito
Top