How to make insensitive buttons have insensitive sound on click?

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
Li yuanlin
Regular
Posts: 83
Joined: Sat Aug 04, 2018 8:42 pm
Location: Hong Kong
Contact:

How to make insensitive buttons have insensitive sound on click?

#1 Post by Li yuanlin »

There is no such thing like "insensitive_sound "audio/se/insensitive.ogg"" in renpy style
stay hungry,stay foolish.

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

Re: How to make insensitive buttons have insensitive sound on click?

#2 Post by Ocelot »

Currently there is no way to do that. Insensitive means «does not receive click event», so you cannot actually click it.
You can draw invisible button over onsensitive one and use its click sound instead.
< < insert Rick Cook quote here > >

philat
Eileen-Class Veteran
Posts: 1895
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: How to make insensitive buttons have insensitive sound on click?

#3 Post by philat »

Another option would be to simply use an If() or plain if conditions to have two different buttons or actions instead of utilizing the insensitive state.

Post Reply

Who is online

Users browsing this forum: Google [Bot]