call a graphic pic and a sound

I want to call a series of images to make a splash scene and call a melody effect too.

In ace.
Aren't there splash screen scripts that already do this?
How do you want to call it? I'm assuming you want this to be done as an event call?
uhm,

play bgm

show pic

wait

*

remove/fade pic

show pic

wait

*

remove/fade final pic

stop bgm

** -> repeat until before the final image

if you wanna do it with scripts, you can take a look at how the splash screen in lite was made:

def show_logo

  sprite = Sprite.new

  Graphics.fadeout(0)

  sprite.bitmap = Cache.system('Logo1')

  Graphics.fadein(30)

  Graphics.wait(30)

  Graphics.fadeout(30)

  sprite.bitmap = Cache.system('Logo2')

  Graphics.fadein(30)

  Graphics.wait(30)

  Graphics.fadeout(30)

end

 

just add the bgm play and stop... you can also look at the other scenes to see how it's done...
I dont want the fade in and out. How do I just show. 

I had the fade in and out already exactly like that

and is it play_me("name", 0,0) or?

also where does the end and module stuff go?
try fadein and out of 0 or 1...

if you want to put it into a module

module ModuleName

  MethodName

end

then to use it, you'd do

ModuleName::MethodName

so for example: 

module ShinGamix def show_logo  sprite = Sprite.new  Graphics.fadeout(0)  sprite.bitmap = Cache.system('Logo1')  Graphics.fadein(30)  Graphics.wait(30)  Graphics.fadeout(30)  sprite.bitmap = Cache.system('Logo2')  Graphics.fadein(30)  Graphics.wait(30)  Graphics.fadeout(30) endendto use it:

ShinGamix::show_logo
play_me("name", 0,0) would not play anything. Or, rather, it would play it, but the volume would be 0 so you'd never hear it.


You should look up some of these things in the help file so you understand what the parameters are, rather than guessing.


And if you don't want the fadein and fadeout, just leave those lines out.
so if i remove the fadein and fadeout lines in will show the pics?

and how would I just call a sound effect in Ace? or should I say melody?

play_me("name", 0,0)is it

  • play_me ("name", pitch, volume)
or 

is it

  • play_me ("name", volume, pitch)
???
You could look that up in the help file 😉


Where did you event get play_me from?


The call is Audio.me_play(filename[, volume[, pitch]])

Original thread: https://forums.rpgmakerweb.com/threads/call-a-graphic-pic-and-a-sound.17722/