Search found 239 matches

by RicharDann
Fri Oct 06, 2017 10:05 am
Forum: Ren'Py Questions and Announcements
Topic: How to move menu buttons?
Replies: 26
Views: 2156

Re: How to move menu buttons?

I think the problem is identation. Identation refers to how the code is aligned in the script file. If you're using editra, you can go to View Menu, click Editor and then check 'Identation Guides' so it can help you see what I mean. You see, the if statement only runs the contents below when the mai...
by RicharDann
Fri Oct 06, 2017 9:28 am
Forum: Ren'Py Questions and Announcements
Topic: How to move menu buttons?
Replies: 26
Views: 2156

Re: How to move menu buttons?

There might be a problem with identation, or the way you're placing the buttons, it's hard to know for sure without actually seeing the code. If you can post the entire screen code formatted using [code] [/code]tags, like this

Code: Select all


# Your code here

by RicharDann
Thu Oct 05, 2017 2:58 pm
Forum: Ren'Py Questions and Announcements
Topic: How to move menu buttons?
Replies: 26
Views: 2156

Re: How to move menu buttons?

Another question: Can I customize the navigation menu buttons to be an image and make another image with different color when hovering over a button or it has to be done with font and html colors? edit: I guess with this? screen gui_game_menu(): vbox xalign 1.0 yalign 1.0: imagebutton auto "save_%s...
by RicharDann
Thu Oct 05, 2017 12:23 pm
Forum: Ren'Py Questions and Announcements
Topic: How to move menu buttons?
Replies: 26
Views: 2156

Re: How to move menu buttons?

Ah, of course, you also have to change xalign to 0.5
by RicharDann
Thu Oct 05, 2017 12:20 pm
Forum: Ren'Py Questions and Announcements
Topic: RenPy 6.99.13 Prereleased
Replies: 16
Views: 3847

Re: RenPy 6.99.13 Prereleased

After updating to 6.99.13.2808, I got this error when I tried to build a distribution: I'm sorry, but an uncaught exception occurred. While running game code: Exception: Possible infinite loop. I got this error too when creating a new project. I erased that project and then created a new one, and i...
by RicharDann
Thu Oct 05, 2017 12:07 pm
Forum: Ren'Py Questions and Announcements
Topic: How to move menu buttons?
Replies: 26
Views: 2156

Re: How to move menu buttons?

EDIT: Oops, I misunderstood your question. To place it in the bottom center you need to change yalign to something like 0.7
by RicharDann
Thu Oct 05, 2017 11:53 am
Forum: Ren'Py Questions and Announcements
Topic: How to move menu buttons?
Replies: 26
Views: 2156

Re: How to move menu buttons?

Glad I could help! :)

And yes, if what you need help with still relates to the topic title, or if the solution we give doesn't solve the problem, you can post it right here, if it's a different problem that requires additional explanation you may want to create a new topic with a different title.
by RicharDann
Thu Oct 05, 2017 11:37 am
Forum: Ren'Py Questions and Announcements
Topic: How to move menu buttons?
Replies: 26
Views: 2156

Re: How to move menu buttons?

If you go to screens.rpy and scroll to the navigation screen, the menu buttons are organized inside a vbox, that's a vertical box, it displays its children vertically. Instead you can use an hbox (horizontal). As for adding or removing buttons, it's as simple as deleting them in the code and writing...
by RicharDann
Thu Oct 05, 2017 11:06 am
Forum: Ren'Py Questions and Announcements
Topic: How to call this map from a menu button
Replies: 3
Views: 572

Re: How to call this map from a menu button

I can't imagine how would that replace the start menu, but I think that to avoid this you should place the planets screen and the solar_system labels in a .rpy file other than the script (you can make one with editra). As for calling the map from a button, it depends on how you want to handle the na...
by RicharDann
Wed Oct 04, 2017 11:47 am
Forum: Ren'Py Questions and Announcements
Topic: Showing dictionary key value pairs on a screen [SOLVED]
Replies: 4
Views: 362

Re: Showing dictionary key value pairs on a screen [SOLVED]

You could also interpret the value within the for loop: for key, value in d.iteritems(): .... text "[key] = [value]" You will find though, with dictionary keys being unordered that it might be best to iterate a sorted list rather than leave it to chance as to which order they are output... for key,...
by RicharDann
Wed Oct 04, 2017 10:13 am
Forum: Ren'Py Questions and Announcements
Topic: Showing dictionary key value pairs on a screen [SOLVED]
Replies: 4
Views: 362

Re: Showing dictionary key value pairs on a screen

philat wrote:
Wed Oct 04, 2017 9:37 am
use .format interpolation (which you can search for) or string concatenation (i.e., "[k] has value " + str(d[k])).
Oh of course *facepalm* why didn't I think of that? str() works just fine, thanks!
by RicharDann
Wed Oct 04, 2017 9:23 am
Forum: Ren'Py Questions and Announcements
Topic: Showing dictionary key value pairs on a screen [SOLVED]
Replies: 4
Views: 362

Showing dictionary key value pairs on a screen [SOLVED]

For an inventory system I'm making for my game I need to use dictionaries and be able to show their contents in a screen, the dictionary seems to be working fine but when I try to show it's contents, Ren'Py throws me an error. Here's what I have been testing with: default a_dict = {'a':1,'b':2,'c':3...
by RicharDann
Tue Oct 03, 2017 3:23 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Splitting up choice boxes vertically rather than horizontally?
Replies: 12
Views: 1138

Re: Splitting up choice boxes vertically rather than horizontally?

But honestly I think "if" statement is not good, since it's not repeating itself to fill scalable grid... You're right, I didn't realize it before. However I did test it right now and while didn't work, it seems like it's not supported by screens, oddly enough. What sasquatchii could do is setup th...
by RicharDann
Tue Oct 03, 2017 2:55 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Splitting up choice boxes vertically rather than horizontally?
Replies: 12
Views: 1138

Re: Splitting up choice boxes vertically rather than horizontally?

Mikola, thank you. When I tried your code I got this error: I'm sorry, but errors were detected in your script. Please correct the errors listed below, and try again. File "game/screens.rpy", line 212: u'while' is not a keyword argument or valid child for the screen statement. while i < 6 ^ Ren'Py ...