Make a balloon wait until completion with a script call?

Banjo

Veteran
Veteran
Joined
Jan 4, 2013
Messages
70
Reaction score
15
First Language
English
Primarily Uses
RMVXA
Using the normal Event option, you can make the game wait until a balloon completes its animation, but I need to use a script call for this since I'm using a variable for the event id. This works fine, but the game doesn't pause for the balloon to finish and I can't figure out how to make it do so using this scripting method.

My script snippet I'm using is:
$game_map.events[$game_variables[571]].balloon_id = 1

Can someone please tell me what I need to add to this script make the game wait for the balloon to finish animating?

Thanks!
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,268
Reaction score
6,013
First Language
Indonesian
Primarily Uses
RMVXA
Add this
Code:
Fiber.yield while $game_map.events[$game_variables[571]].balloon_id > 0
 

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

Latest Threads

Latest Profile Posts

What I've seen from the MZ tiles looks pretty inconsistent, bleh. Every plant seems to be drawn in a different style.
Recently posted a demo of my game online. Now I have no idea what to do with myself o_O What is the reason for my existence now...
I'm feeling a lot better this week. Some of the rules in my country for isolation changed a little, so I was able to see friends in person again, which was a huge relief. Thanks everyone for giving me some sympathy last week when I was having a rough time!
Psst, hey kid, I heard you like Golden Sun...
What is your problem procrastination and distraction? My problem is distraction and get burned out.

Forum statistics

Threads
99,285
Messages
963,853
Members
130,894
Latest member
sks2949
Top