launch sound on hovered imagebutton

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
Mirrodin
Regular
Posts: 114
Joined: Sun Mar 19, 2017 2:56 pm
Contact:

launch sound on hovered imagebutton

#1 Post by Mirrodin »

Hi guys,

All is in the title, I have actually no idea of how is it implementable. If you have some advice or some exemple, I will take it with pleasure.

rayminator
Miko-Class Veteran
Posts: 793
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: launch sound on hovered imagebutton

#2 Post by rayminator »

you can try activate_sound "clicked.ogg"

example:

Code: Select all

imagebutton idle im.Scale("gui/button/button_config.png", 129, 25) xpos 1100 ypos 550 hover im.Scale("gui/button/button_config(1).png", 129, 25) activate_sound "clicked.ogg" action ShowMenu('preferences')

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2398
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: launch sound on hovered imagebutton

#3 Post by Ocelot »

< < insert Rick Cook quote here > >

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]