Search found 263 matches

by RicharDann
Thu Oct 05, 2017 11:53 am
Forum: Ren'Py Questions and Announcements
Topic: How to move menu buttons?
Replies: 26
Views: 2245

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: 2245

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: 585

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: 381

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: 381

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: 381

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: 1235

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: 1235

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 ...
by RicharDann
Tue Oct 03, 2017 11:19 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Imagebutton with text?
Replies: 8
Views: 1956

Re: Imagebutton with text?

So as I expected I have to make multiple copies every single imagebutton file for each translation. I didn't want to do it this way hoping to save some space. But now that I think about it, imagebuttons have really small size so it won't make that much of a difference. I'll go with this, thanks Donm...
by RicharDann
Tue Oct 03, 2017 10:27 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Imagebutton with text?
Replies: 8
Views: 1956

[SOLVED] Imagebutton with text?

I was wondering if there is a way to have imagebuttons show a string over them? I'm making some menu buttons with text that can be translated, I've tried this: screen gm_menu(): imagebutton _("Inventory") auto "gm_button_%s.png" action ShowMenu('inv_menu') But obviously this didn't work. Is there a ...
by RicharDann
Thu Sep 28, 2017 3:59 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Invisible love meter?
Replies: 6
Views: 570

Re: Invisible love meter?

Yes you're correct, it's pretty straightfoward as you can see, += is used for adition, -= for substraction, *= for multiplication and /= for division, in case you ever need to use those. Also keep in mind that a single = sign sets the variable to the value you want as you see in default eileen_point...
by RicharDann
Thu Sep 28, 2017 1:38 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Invisible love meter?
Replies: 6
Views: 570

Re: Invisible love meter?

Normally it's a good idea to put all of the variable declarations with default before the start label, the ones using the $ sign are to be placed inside the script, in the exact point where you want the variable to change, and the if statement when you want to check the variable's value. So, if you'...
by RicharDann
Wed Sep 27, 2017 3:31 pm
Forum: Ren'Py Questions and Announcements
Topic: Displaying a modal screen from a quick menu button
Replies: 2
Views: 983

Re: Displaying a modal screen from a quick menu button

It's hard to know for sure without actually seeing your code, but, from what I understand I think what you're looking for is the Hide() screen action in the Done button, since from my experience, Return() wich is the other alternative doesn't seem to hide the screen at all if launched from the quick...
by RicharDann
Tue Sep 26, 2017 10:19 am
Forum: Ren'Py Questions and Announcements
Topic: Unlockable Imagebuttons via persistent data?
Replies: 2
Views: 297

Re: Unlockable Imagebuttons via persistent data?

Um... an if statement wouldn't work? if persistent.ending_1_unlocked: imagebutton auto "sprites/star/star1_1%s.png" xpos 305 ypos 172 focus_mask None action NullAction() hovered [ Play ("sound", "sfx/cast.ogg"), Show("gui_tooltip", my_picture="ui/changes.png", my_tt_xpos=46, my_tt_ypos=648) ] unhove...