Search found 159 matches

by pucedragonlord
Mon Sep 29, 2014 9:18 am
Forum: Ren'Py Questions and Announcements
Topic: Return() in python
Replies: 1
Views: 323

Return() in python

I'm trying to get a menu to close after performing an action, but only if the action is successful. THe logical thing to do would be include a Return() command in the python where the action is defined, but I can't seem to make it work. What is the Python equivalent of the Return() action, or how do...
by pucedragonlord
Wed Sep 24, 2014 10:43 am
Forum: Ren'Py Questions and Announcements
Topic: confirming a save?
Replies: 5
Views: 831

Re: confirming a save?

Alright, well, when I include all the other file actions in the new file, I can make most things work, but I'm still unable to automatically close the game screen after the game saves. I tried putting a if condition: return between the renpy.save(fn, extra_info=save_name) renpy.restart_interaction()...
by pucedragonlord
Mon Sep 22, 2014 1:04 pm
Forum: Ren'Py Questions and Announcements
Topic: confirming a save?
Replies: 5
Views: 831

Re: confirming a save?

The main thing I want it to do is remember which save file the player last manually saved to or loaded from. The whole game runs in a dynamic loop that puts each page together (it's got a nvl mode structure, as opposed to the standard one), and at the beginning, if the player has certain options sel...
by pucedragonlord
Mon Sep 22, 2014 11:36 am
Forum: Ren'Py Questions and Announcements
Topic: confirming a save?
Replies: 5
Views: 831

Re: confirming a save?

Is there a way to go about that that doesn't involve copying every file-related action and accompanying code to the new file? I'm not 100% clear on how the init -x statements affect variable scope, but if I just want to make custom versions of FileSave(), FileLoad(), and FileAction(), what do I have...
by pucedragonlord
Thu Sep 18, 2014 9:19 pm
Forum: Ren'Py Questions and Announcements
Topic: pie charts
Replies: 7
Views: 1616

Re: pie charts

hackey ways it is, then!
by pucedragonlord
Thu Sep 18, 2014 2:41 pm
Forum: Ren'Py Questions and Announcements
Topic: pie charts
Replies: 7
Views: 1616

pie charts

I'd like to implement some sort of visual percentage representation in my game. Pie charts are the standard for such data, but I'm not sure how to go about them in RenPy in any way that isn't a little hackey (making a 1/360th of a circle and repeating it, for example). Anyone know a good way to go a...
by pucedragonlord
Thu Sep 18, 2014 11:32 am
Forum: Ren'Py Questions and Announcements
Topic: confirming a save?
Replies: 5
Views: 831

confirming a save?

My project has some extra behavior regarding saving, but I only want it to run when the player successfully saves the game. I put all the extra stuff on the save buttons, but I didn't take into account what happens when a player tries to overwrite a slot, and things break if the player says "no...
by pucedragonlord
Thu Sep 11, 2014 11:00 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved!] right_bar not drawing
Replies: 6
Views: 828

Re: right_bar not drawing

That hadn't even occurred to me. That should cover all my questions regarding scrollbars. Thanks as always.
by pucedragonlord
Thu Sep 11, 2014 6:26 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved!] right_bar not drawing
Replies: 6
Views: 828

Re: right_bar not drawing

I see. It looks like the right cap was being cut off (exactly, strangely enough -- even when I put something between them it went right up to where it cap should draw and stopped) by the frame width, shrinking them made it show up. This, however, begs another question: I was under the impression the...
by pucedragonlord
Thu Sep 11, 2014 12:00 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved!] right_bar not drawing
Replies: 6
Views: 828

Re: right_bar not drawing

They are the two images with comments next to them in the attached file, below the broken bar attempt.

The upper one that looks like two distant triangles is the "barBase" image.
The lower with the line connecting them is "barFull"
by pucedragonlord
Wed Sep 10, 2014 2:17 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved!] right_bar not drawing
Replies: 6
Views: 828

[solved!] right_bar not drawing

I cannot for the life of me figure out why the empty half of a bar isn't showing up. I'll drop the code and examples below, but in short, I have custom styling rules for a bar, but the empty side never shows up. The images it uses seems to check out, the thumb shows up and moves fine, but the empty ...
by pucedragonlord
Wed Sep 10, 2014 12:17 pm
Forum: Ren'Py Questions and Announcements
Topic: Rotating hover indicator - better way to do this?
Replies: 3
Views: 773

Re: Rotating hover indicator - better way to do this?

Two things I can think of to optimize a bit: First, instead of having four instances of the spinning image, make a single image out of the four and have that spin. It will mean one more image file (or larger sprite sheet, if you prefer that route), but as it is now your game has to track the movemen...
by pucedragonlord
Wed Sep 10, 2014 11:50 am
Forum: Ren'Py Questions and Announcements
Topic: Question about button selected state
Replies: 2
Views: 517

Re: Question about button selected state

neat, looks like I'll be defining some custom actions.

It doesn't mention show or show menu, though. Any idea if either of those have any sort of selected behavior, or are they meant to always leave things unselected?
by pucedragonlord
Tue Sep 09, 2014 6:19 pm
Forum: Ren'Py Questions and Announcements
Topic: Question about button selected state
Replies: 2
Views: 517

Question about button selected state

I'm curious as to what all makes a button appear in the selected state and what doesn't. From what I've found so far, having a normal variable match a button's action does, but something like opening a menu with a button or changing a tooltip on click doesn't change the state. How exactly do these b...
by pucedragonlord
Fri Aug 15, 2014 1:52 pm
Forum: Ren'Py Questions and Announcements
Topic: Menu questions
Replies: 1
Views: 422

Menu questions

I've a few assorted menu-related questions: Can I make the menu background transparent so some of the normal game screen shows, or will I have define custom main and save menus to do so? the "#hexhex" method doesn't leave room for alpha values. I know I can use config.keymap['game_menu'].r...