Making a move picture script wait for the duration - SOLVED

bishiba

Adept
Veteran
Joined
Apr 6, 2016
Messages
89
Reaction score
11
First Language
Swedish
Primarily Uses
N/A
Hello!

I am using the below code and I am currently replacing all the events in my game that just use the move picture option. However in there you could click the little option "wait for completion", how do I add that in after the script to make it wait? Is it just a normal "wait"?

JavaScript:
$gameScreen._pictures[Loading]._opacity = opacity;
$gameScreen._pictures[Loading]._duration = duration;
EDIT:
Essentially it doesn't work because the codes knock each other out. First the opacity gets set, then the duration triggers, however. What you do is you set targetOpacity and then when you do the duration the duration is what sets the opacity to targetOpacity within the given timeframe.
Code:
$gameScreen._pictures[Loading]._targetOpacity = opacity;
$gameScreen._pictures[Loading]._duration = duration;
So the above works.

Best regards,
Bishiba
 
Last edited:

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

Latest Threads

Latest Posts

Latest Profile Posts

Recent threads, and my very poor algorithm for my minimap plugin have made me face the fact that I need to review algorithms and such.

Going through Cracking the Coding Interview now. I am so excited.
Kes
I've seen a reference to a Community Lighting plugin for MZ, but cannot find it. Is it still in beta?

Todo:
Add fog of war
Add enemy indicators
Make window draggable
Optimise map drawing algorithm (5 seconds to load the map you see, so it's a... poo-poo algorithm)

Any suggestions? :kaoblush:
bleh studio hell job haha at least they like it didnt had time to do much laundry tho ;w;'....YES I DO AT LEAST TAKE A SHOWER everyday!
Ami
--- Food Ingredients ---

Hero: Since the Chef are in Hospital,we can't eat his Dish in 3 Days.
F.Mage: What we have to Eat?
M.Healer: Don't worry,we can Eat the Food Ingredients.
Hero & F.Mage
: Really?

(3 Days Later)

Chef: Hi,Guys. I'm Ba---
(Entire Party Collapse After Eat Raw Meat)
Chef: Wha...WHAT GOING ON HERE!!!!!!

Forum statistics

Threads
102,913
Messages
995,916
Members
134,362
Latest member
ankh75
Top