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,695
Reaction score
1,113
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,087
Reaction score
1,508
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

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,018
Members
137,563
Latest member
MinyakaAeon
Top