Trying to "Show Animation" on a random timer.

PKirkby

Veteran
Veteran
Joined
Oct 26, 2019
Messages
154
Reaction score
14
First Language
english
Primarily Uses
RMMV
Hi everyone, I'm struggling to figure out a way to to play an animation randomly. It's just bubbles coming from the ground, and I'd like them to happen at random times, but I can't seem to figure it out.

I've got as far getting a "Control Variable" but I'm not really sure where to declare the variable first, and second, I don't know how to make a "wait" command to use this random number variable. Thanks in advance.
 

V_Aero

Veteran
Veteran
Joined
Apr 23, 2019
Messages
83
Reaction score
55
First Language
german
Primarily Uses
RMMV
You can do something like this:

(parallel process)
set Variable random = random
FORK if random = 5
show Animation
ENDFORK
wait 1 sec
 

PKirkby

Veteran
Veteran
Joined
Oct 26, 2019
Messages
154
Reaction score
14
First Language
english
Primarily Uses
RMMV
You can do something like this:
You can do something like this:

WOuld you mind walking me through that. I haven't used RPGM since 2k3 and I never really got into using code, although I do understand some logic since I used gamemaker for a while. So I create an event that's a parallel process, then run a script with these commands? I've never seen Fork used so excuse my ignorance.

(parallel process)
set Variable random = random
FORK if random = 5
show Animation
ENDFORK
wait 1 sec
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Have you appreciated a Hedgehog today?

Storybook Hero demo has been well received so far. Yay! We are developing it steadily albeit slowly <_<. We will get there one day o_O.
TFW: You get a text from someone and a long conversation--but you have no idea who this person is and don't wanna be that guy that asks "Who is this by the way?" I have no clue who this person is... but they seem to know me quite well. :rswt
You know, after all these years of using RM I've never played To The Moon. With being busy with life and then after my mom died I was too emotionally fragile to play something that heavy. Has anyone played the Switch version? Is there any big differences between that and the RM version?
Today I finished my Lets Play. Gonna have the videos scheduled for daily uploads now. Woo I finished something ^^

Forum statistics

Threads
93,406
Messages
912,067
Members
122,914
Latest member
Arcannis
Top