delayed play sound in main menu[solved]

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
SONTSE
Regular
Posts: 96
Joined: Sun Nov 24, 2013 10:49 pm
Completed: 11 VN's so far
Discord: jkx0282_10798
Contact:

delayed play sound in main menu[solved]

#1 Post by SONTSE »

Hello please!
i need a sound to be played after a short delay in main menu screen. how can i bring it in the screen language section? i tried following code

Code: Select all

 timer 0.5 action [renpy.sound.play("sound.ogg")]
and it just plays sound ignoring delay

Thanks!
Last edited by SONTSE on Thu Aug 14, 2014 7:33 pm, edited 1 time in total.

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: delayed play sound in main menu

#2 Post by xela »

These questions are getting too lazy...

Ren'Py Documntation wrote:

Code: Select all

Play(channel, file, **kwargs)

    Causes an audio file to be played on a given channel.

    channel
        The channel to play the sound on.
    file
        The file to play.

    Any keyword arguments are passed to renpy.music.play()
Like what we're doing? Support us at:
Image

User avatar
SONTSE
Regular
Posts: 96
Joined: Sun Nov 24, 2013 10:49 pm
Completed: 11 VN's so far
Discord: jkx0282_10798
Contact:

Re: delayed play sound in main menu

#3 Post by SONTSE »

Well, sorry about being lazy (actually not lazy, but rather stupid because i thoroughly searched but in a wrong place lol). Just tested your suggested command, works fine.
Thanks for the help and for new piece of RTFM for me to study...

Post Reply

Who is online

Users browsing this forum: Google [Bot]