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

is Gotcha Gotcha Games Inc. = KADOKAWA CORPORATION? I haven't found this topic yet, Want to know for credits on my game. Thanks.
If you get everything you want, when you want it, it kills your creativity. If you never get anything you want, you're forced to be creative with what you have.
Old chiptune loops free for use.
I think I've got my hero designs pretty much finialised ( still got some tweaks. ) In the end it'll be the four outfit colour variants with four different skintones.

I'm a bit conflicted. One the one hand, it's quite visually cool to make bodies of water that the player can interact with by going into it. However obscuring the player character from a gameplay perspective is pretty bad. Hmm... There's the option to make the area around the player visible, but then that kind of defeats the purpose of submerging them. :unsure:

Forum statistics

Threads
104,299
Messages
1,005,373
Members
135,817
Latest member
minihydra
Top