The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: magic2345 on April 07, 2007, 01:47:36 PM

Title: Getting Item ME(resolved)
Post by: magic2345 on April 07, 2007, 01:47:36 PM
How can I play a ME in the middle of a message saying I got something. The player is supposed to freeze until he presses the spacebar. When he does press the spacebar, the ME stops and the memorized BGM/BGS plays. How can I do that?

Thanks,
Title: Re: Getting Item ME
Post by: tSwitch on April 07, 2007, 01:50:07 PM
play ME - "Item001" or something like that
there is a button for that near Play BGM or Start BGM or whatever it is
(by the way, ME is just a sound effect that is really short so it won't loop)
Title: Re: Getting Item ME
Post by: magic2345 on April 07, 2007, 02:54:56 PM
I know, but I wanted to make it like this:
Open Chest, get item message, ME plays. When the ME is playing, I want the ME to stop when the player presses spacebar and then continue with the game.

Thanks,
Title: Re: Getting Item ME
Post by: sparten84 on April 07, 2007, 04:26:59 PM
i get what your saying but if you use the play me event it will do that

hope i helped a little =)
Title: Re: Getting Item ME
Post by: modern algebra on April 07, 2007, 04:31:32 PM
If you want, you could just have it like this:

Conditional Branch: C is being pressed
    Play ME: NONE
Branch END

because Play ME: None stops the current ME
Title: Re: Getting Item ME
Post by: sparten84 on April 07, 2007, 04:32:59 PM
oh ok thanks that kinda helped me actulley
Title: Re: Getting Item ME
Post by: magic2345 on April 08, 2007, 12:59:56 AM
What do I put in the else branch? if I do that then even if the player doesn't press C the game will continue with part of the ME playing.
Title: Re: Getting Item ME
Post by: modern algebra on April 08, 2007, 01:03:02 AM
Just put the C part into a loop which is broken if the player presses C or if the ME stops playing.
Title: Re: Getting Item ME
Post by: magic2345 on April 08, 2007, 01:20:58 AM
OKay....I don't know what you just said....can you elaborate(explain what I should put in the common event....)...


Thanks,
Title: Re: Getting Item ME
Post by: modern algebra on April 08, 2007, 01:26:01 AM
No common event, just in the event itself, you want to stop moving once you get the item until the player hits space right?

It's look like this:

Loop
Conditional Branch C is pressed
     Play ME: None
     Break Loop
Branch END
Repeat Above

I think that should work.
Title: Re: Getting Item ME
Post by: magic2345 on April 08, 2007, 01:29:45 AM
There are many times I need to use this. So, I used a common event...Is there something wrong putting it in a common event?

edit-Where do I put the play ME?
Title: Re: Getting Item ME
Post by: modern algebra on April 08, 2007, 01:30:58 AM
No, it will work perfectly fine. I was just under the wrong impression.
Title: Re: Getting Item ME
Post by: magic2345 on April 08, 2007, 01:51:45 AM
I tried it and it didn't work. I was supposed to put the play ME before the loop, correct? When I called the common event, the bgm just stops... But when I tried putting wait before the loop, I heard the ME playing until it stops and then the game freezes....
Title: Re: Getting Item ME
Post by: modern algebra on April 08, 2007, 02:00:39 AM
Maybe we're overanalysing this.

Why can't you just do it this way? (inside the event):


Play ME: Item
Text: You found a ___
Play ME: None
Title: Re: Getting Item ME
Post by: magic2345 on April 08, 2007, 02:21:51 AM
A-A-A-A-A, WHAT!? I tried it and it works and its simple too.... Why didn't I think of this before!!!

Thanks!