Search found 12 matches

by twodee
Sun May 13, 2018 11:24 am
Forum: Ren'Py Questions and Announcements
Topic: Text Bleeps not working?
Replies: 1
Views: 572

Text Bleeps not working?

Hi guys :) I'm trying to input text bleeps into my game, but I can't seem to get them to work (likely because I'm using the wiki). Here's my code, what should I do? Code: define k = Character("K", color = "#FFFFFF", callback=k_test_sound, what_prefix='"', what_suffix='"...
by twodee
Sun May 13, 2018 11:14 am
Forum: Ren'Py Questions and Announcements
Topic: Text input that only allows numbers?
Replies: 5
Views: 1537

Re: Text input that only allows numbers?

Thank you both for the help! It works now :D
by twodee
Sat May 12, 2018 5:09 pm
Forum: Ren'Py Questions and Announcements
Topic: Text input that only allows numbers?
Replies: 5
Views: 1537

Re: Text input that only allows numbers?

Thanks! One more question though: How do I make the if statements relevant to the number the player inputted? Ex: If the player enters a number in between 100 and 249, the game jumps to a certain label.
by twodee
Fri May 11, 2018 7:45 pm
Forum: Ren'Py Questions and Announcements
Topic: Text input that only allows numbers?
Replies: 5
Views: 1537

Text input that only allows numbers?

In my game, each day, the player has to enter an integer. Any integer they put will give results, though some will give different results than others (like, if they put 0-50, a different thing happens than when they put in 51-100). I believe I know how to code the results, but I don't know how to do...
by twodee
Thu May 10, 2018 6:12 pm
Forum: Ren'Py Questions and Announcements
Topic: How to call a screen from an imagebutton screen?
Replies: 12
Views: 5608

Re: How to call a screen from an imagebutton screen?

Unfortunately, that got me the same error.
by twodee
Thu May 10, 2018 4:49 pm
Forum: Ren'Py Questions and Announcements
Topic: How to call a screen from an imagebutton screen?
Replies: 12
Views: 5608

Re: How to call a screen from an imagebutton screen?

Seriously, thank you so much for the help so far. I still get an error though: I'm sorry, but errors were detected in your script. Please correct the errors listed below, and try again. File "game/screens.rpy", line 28: expected statement. imagebutton: ^ File "game/screens.rpy", ...
by twodee
Wed May 09, 2018 5:36 pm
Forum: Ren'Py Questions and Announcements
Topic: How to call a screen from an imagebutton screen?
Replies: 12
Views: 5608

Re: How to call a screen from an imagebutton screen?

That worked, thanks! Back to the folder appearing open/closed, I still can't figure that out. My game runs smoothly, however, when the folder is opened, the closed-folder icon doesn't turn into the open-folder icon, making it impossible to close the folder. init -1 python: def hide_screens(): renpy....
by twodee
Tue May 08, 2018 7:51 pm
Forum: Ren'Py Questions and Announcements
Topic: How to call a screen from an imagebutton screen?
Replies: 12
Views: 5608

Re: How to call a screen from an imagebutton screen?

The 'show' needs to be capitalised. Thanks, this fixed most of it! However, I'm still getting an error. It says that "fileone" isn't defined? File "game/screens.rpy", line 24, in execute imagebutton auto "gui/closedfolder_%s.png" action Show(fileone) xpos 1686 ypos 100...
by twodee
Tue May 08, 2018 7:30 pm
Forum: Ren'Py Questions and Announcements
Topic: How to call a screen from an imagebutton screen?
Replies: 12
Views: 5608

Re: How to call a screen from an imagebutton screen?

You can't call screens, but you can show screens using the Show() command, which may or may not be what you're looking for. I tried that, but still got an error message: I'm sorry, but errors were detected in your script. Please correct the errors listed below, and try again. File "game/screen...
by twodee
Tue May 08, 2018 5:48 pm
Forum: Ren'Py Questions and Announcements
Topic: How to call a screen from an imagebutton screen?
Replies: 12
Views: 5608

How to call a screen from an imagebutton screen?

Basically, I'm creating an always-present folder that, when clicked, shows an imagebutton, that when clicked shows another, and when that one's clicked it shows another and so on. The always-present folder will remain but will be opened (it'll show an open folder instead of a closed one) and when it...
by twodee
Tue May 08, 2018 5:34 pm
Forum: Ren'Py Questions and Announcements
Topic: How to create a pause after every period and comma?
Replies: 5
Views: 1536

Re: How to create a pause after every period and comma?

Just to add - this is going to cause bad UX when your sentence ends with a . and players have to click twice to proceed and think the game's semi-froze. That's true. I think I'll just use Remix's code and get rid of the part for the periods. Need be, I can just manually put in the wait tags after p...
by twodee
Tue May 08, 2018 4:33 pm
Forum: Ren'Py Questions and Announcements
Topic: How to create a pause after every period and comma?
Replies: 5
Views: 1536

How to create a pause after every period and comma?

I know that I can just insert a wait tag after every period/comma, but I was wondering if there was a way I could just define something and have the system do it for me automatically?

Thanks :D