Search found 278 matches

by sapiboonggames
Tue Apr 25, 2017 12:45 am
Forum: Ren'Py Questions and Announcements
Topic: Can't build distributions (project launches normally)
Replies: 5
Views: 529

Re: Can't build distributions (project launches normally)

Can you try to set this one: renpy.not_infinite_loop(delay) Resets the infinite loop detection timer to delay seconds. Ren'Py Documentation: renpy.not_infinite_loop Where should I put that command, if I may ask? Since the line detected as loop is part of an init (just declaring that initial value o...
by sapiboonggames
Mon Apr 24, 2017 11:14 am
Forum: Ren'Py Questions and Announcements
Topic: Can't build distributions (project launches normally)
Replies: 5
Views: 529

Re: Can't build distributions (project launches normally)

I don't know if this will work but there's no need for that to be in an init block. At the top of your script, just make it say (outside of an init): define shelf2bought = False Does that help? It doesn't seem to help, unfortunately :/ I even tried removing that entire line but I still can't build ...
by sapiboonggames
Mon Apr 24, 2017 6:52 am
Forum: Ren'Py Questions and Announcements
Topic: Can't build distributions (project launches normally)
Replies: 5
Views: 529

Can't build distributions (project launches normally)

Hi guys, I'm back with another question (or trouble, actually). I've finished up my demo and used the build distributions command. However, the process fails with the reason that I have to ensure the project runs normally. The thing is, the project does launch normally. I can play it just fine :( I ...
by sapiboonggames
Sun Apr 23, 2017 3:39 am
Forum: Ren'Py Questions and Announcements
Topic: How to show thousands separator for variable?
Replies: 4
Views: 377

Re: How to show thousands separator for variable?

The obvious way: transform number to string, insert separator as needed and print that string instead of raw number. You can easily do that using format: $ money_string = '{:,}'.format(money) Correct way would be to define your class to hold money, with proper methods to add and substract money wit...
by sapiboonggames
Sun Apr 23, 2017 2:51 am
Forum: Ren'Py Questions and Announcements
Topic: How to show thousands separator for variable?
Replies: 4
Views: 377

How to show thousands separator for variable?

Hello guys, I'm back with another question :D
As the subject says, do you know how to show thousands separator for variable?
Let's say:

Code: Select all

$ money += 10000
Right now, if I show money by using [money], it's displayed as "10000", is there any way to display it as "10,000" or "10.000"?

Thanks! :D
by sapiboonggames
Thu Feb 16, 2017 2:12 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Display in-game time instead of actual time in save
Replies: 3
Views: 275

Re: Display in-game time instead of actual time in save scre

philat wrote:Not exactly what you're looking for, but probably close enough to give you an idea of how to go about it. viewtopic.php?f=8&t=30905
EDIT: Nevermind. I got it to work after trial and error, the code in the thread you mentioned works!
by sapiboonggames
Thu Feb 16, 2017 12:52 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Display in-game time instead of actual time in save
Replies: 3
Views: 275

Re: Display in-game time instead of actual time in save scre

philat wrote:Not exactly what you're looking for, but probably close enough to give you an idea of how to go about it. viewtopic.php?f=8&t=30905
Thanks! I'll take a look :D
by sapiboonggames
Thu Feb 16, 2017 12:26 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Display in-game time instead of actual time in save
Replies: 3
Views: 275

[SOLVED] Display in-game time instead of actual time in save

Hello guys, I'm making a dating sim in which the game has variables that keep track of the date, month, and weekname (Monday, Tuesday, etc). Previously, I use this code below: text FileTime(number, empty=_("???")) This record the time player save game and display it in save screen. My question is, h...
by sapiboonggames
Fri Jan 20, 2017 2:52 pm
Forum: Ren'Py Questions and Announcements
Topic: Can vbox take a combination of texts and images inside?
Replies: 2
Views: 241

Re: Can vbox take a combination of texts and images inside?

Well, your problem is that vbox has only one child: side. Anything inside side is handled by side displayable itself. Vbox can handle arbitrary complex screens. Here is an example (cut down, so it might not work as-is) vbox: text(character.localized_name) showif character.relationship == 'aquired':...
by sapiboonggames
Fri Jan 20, 2017 2:25 pm
Forum: Ren'Py Questions and Announcements
Topic: Can vbox take a combination of texts and images inside?
Replies: 2
Views: 241

Can vbox take a combination of texts and images inside?

So, as the subject states... I know that vbox can take textbutton and text inside. For ex: vbox: textbutton "Do this" textbutton "Do that" My question is, can vbox take something more complicated such as a combination of texts and images? If yes, how should I proceed with it? I tried putting this co...
by sapiboonggames
Thu Jan 28, 2016 11:37 pm
Forum: Ren'Py Questions and Announcements
Topic: Help with dress-up system
Replies: 2
Views: 243

Re: Help with dress-up system

philat wrote:Is there a reason you're using len(wardrobetop.tops) rather than len(sorted_tops)?
Ahh! Yeah, I was being so stupid.
Changed all the len(wardrobetop.tops) to len(sorted_tops) and it's working fine.

Thank you!
by sapiboonggames
Thu Jan 28, 2016 6:12 pm
Forum: Ren'Py Questions and Announcements
Topic: Help with dress-up system
Replies: 2
Views: 243

Help with dress-up system

Hello guys, I have been attempting making my own dress-up system, but I'm stuck with one problem which has been making me pull my hair for a while :cry: Here is how I define the class. The view is True if the item is available in stores, while if the bought one is True, then the item is bought and n...
by sapiboonggames
Sun Nov 15, 2015 7:21 pm
Forum: Ren'Py Questions and Announcements
Topic: Changing cursor by clicking on a button?
Replies: 3
Views: 385

Re: Changing cursor by clicking on a button?

ringonoki-ua wrote:Maybe you should look into renpy source files to find out in what circumstances cursor is being redrawn on screen?
I can't really code outside of renpy, so looking at the source file would be out of my abilty :oops:

Really hope that someone could help me with this.
Thank you!
by sapiboonggames
Sun Nov 15, 2015 12:13 pm
Forum: Ren'Py Questions and Announcements
Topic: Changing cursor by clicking on a button?
Replies: 3
Views: 385

Changing cursor by clicking on a button?

Hello, I'm trying to make a screen in which if I select a button, the cursor changes. Below is the code that I'm using. ## HANDS BUTTON ## imagebutton: xpos 921 ypos 87 idle "foreplay/handbutton_idle.png" hover "foreplay/handbutton_hover.png" action SetScreenVariable('mousepointer', 1) ## MOUTH BUTT...
by sapiboonggames
Sun Sep 06, 2015 11:22 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Renpy.input asks for input twice?
Replies: 2
Views: 752

Re: Renpy.input asks for input twice?

That's it! It's such a silly mistake.
Thank you once again!