Search found 8 matches

by nillan3
Sun Jun 23, 2019 4:39 am
Forum: Ren'Py Questions and Announcements
Topic: Play a sound when pressing a screen
Replies: 5
Views: 518

Re: Play a sound when pressing a screen

Hmm, it looks like I can play a different sound, so it must be something wrong with the sound itself.. maybe it's to quiet or something
by nillan3
Sat Jun 22, 2019 3:54 pm
Forum: Ren'Py Questions and Announcements
Topic: Play a sound when pressing a screen
Replies: 5
Views: 518

Re: Play a sound when pressing a screen

You need 'action' as well textbutton "ButtonName" action Play("sound", "click.mp3") Sorry I didn't write the whole thing, here it is: screen Money(): imagebutton: idle "images/screens/moneycounter.png" xalign 0.0 action Show("Computer_Wallpaper"), Show("ComputerScreen"), Hide("Money"), Show("Money"...
by nillan3
Thu Jun 20, 2019 1:05 pm
Forum: Ren'Py Questions and Announcements
Topic: Play a sound when pressing a screen
Replies: 5
Views: 518

Re: Play a sound when pressing a screen

Hello, I have made a computer by using screens and want to make it so when you press a button (a screen) on the computer a click sound is played I tried to use this: Play("sound", "click.mp3") But it didnt play a sound. You need 'action' as well textbutton "ButtonName" action Play("sound", "click.m...
by nillan3
Thu Jun 20, 2019 12:13 pm
Forum: Ren'Py Questions and Announcements
Topic: Play a sound when pressing a screen
Replies: 5
Views: 518

Play a sound when pressing a screen

Hello, I have made a computer by using screens and want to make it so when you press a button (a screen) on the computer a click sound is played I tried to use this:

Code: Select all

Play("sound", "click.mp3")
But it didnt play a sound.
by nillan3
Sat Jun 15, 2019 3:59 pm
Forum: Ren'Py Questions and Announcements
Topic: How to use renpy.input by using a screen?
Replies: 6
Views: 557

Re: How to use renpy.input by using a screen?

Not working and not doing what you expect it to do, is not always the same thing. The code below does the job I think you want it to do, though maybe not exactly how you would like to do it. What you should see though, is that the input in the screen does work. init python: def name_func(newstring)...
by nillan3
Sat Jun 15, 2019 12:17 pm
Forum: Ren'Py Questions and Announcements
Topic: How to use renpy.input by using a screen?
Replies: 6
Views: 557

Re: How to use renpy.input by using a screen?

I just get this error when I try that. I'm sorry, but errors were detected in your script. Please correct the errors listed below, and try again. File "game/myscreens.rpy", line 169: expected statement. def name_func(newstring): ^ Ren'Py Version: Ren'Py 7.2.2.491 Sat Jun 15 14:51:36 2019 ``` Sorry ...
by nillan3
Sat Jun 15, 2019 8:52 am
Forum: Ren'Py Questions and Announcements
Topic: How to use renpy.input by using a screen?
Replies: 6
Views: 557

Re: How to use renpy.input by using a screen?

I just get this error when I try that. I'm sorry, but errors were detected in your script. Please correct the errors listed below, and try again. File "game/myscreens.rpy", line 169: expected statement. def name_func(newstring): ^ Ren'Py Version: Ren'Py 7.2.2.491 Sat Jun 15 14:51:36 2019 ```
by nillan3
Sat Jun 15, 2019 5:17 am
Forum: Ren'Py Questions and Announcements
Topic: How to use renpy.input by using a screen?
Replies: 6
Views: 557

How to use renpy.input by using a screen?

So I made a quick math game for my renpy game. However now when I try to convert it into a screen I get into a problem. So basically im trying to make sure that; $ answer = renpy.input("What is the answer?") works on a screen. Im also unsure of any other errors that might occur so I would appreciate...