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"?
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.
So the above works.
Best regards,
Bishiba
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;
Best regards,
Bishiba