Search found 232 matches

by rames44
Wed Mar 20, 2019 11:28 am
Forum: Ren'Py Questions and Announcements
Topic: A way to color certain choices?
Replies: 6
Views: 412

Re: A way to color certain choices?

So, just to make sure I understand what it is that you’re trying to do - when someone chooses “Red,” what you want is for the text of the menu to change to the corresponding color? Instead of (or in addition to) interpolating the name of the color via “[eyes]”? (Just want to make sure I understand t...
by rames44
Tue Mar 19, 2019 12:25 pm
Forum: Ren'Py Questions and Announcements
Topic: A way to color certain choices?
Replies: 6
Views: 412

Re: A way to color certain choices?

If you typed it in your program exactly as you have it in your question, you’re missing an equal sign between “color” and the #

This should work. Do you want to post the code for a menu where it isn’t working?
by rames44
Fri Mar 15, 2019 12:04 pm
Forum: Ren'Py Questions and Announcements
Topic: My Choice Menu doesn't refresh after it's shown (and it's very important to me that it does)
Replies: 8
Views: 572

Re: My Choice Menu doesn't refresh after it's shown (and it's very important to me that it does)

Just for clarity, “call screen x” puts screen x up on the screen, and then waits for the execution of a Return or Jump action. If (via a button, for example) you execute the action Return(), the screen will be removed and execution will continue with the statement right after the “call screen x” sta...
by rames44
Thu Mar 14, 2019 11:53 am
Forum: Ren'Py Questions and Announcements
Topic: My Choice Menu doesn't refresh after it's shown (and it's very important to me that it does)
Replies: 8
Views: 572

Re: My Choice Menu doesn't refresh after it's shown (and it's very important to me that it does)

I think that the core problem is that the menu has decided on its options, and is now waiting for an interaction from the user. (I.e. blocked, waiting for one of the buttons (IN THE MENU) to be pressed. In parallel, you have a screen that has been shown which updates the variable. But this action do...
by rames44
Fri Feb 08, 2019 12:47 pm
Forum: Ren'Py Questions and Announcements
Topic: Suggestion: Could "say" auto clean up image tags?
Replies: 9
Views: 847

Re: Suggestion: Could "say" auto clean up image tags?

That sounds like a nice feature.

I could also see value in the “minus” and “plus” syntax by themselves (i.e. without the save/restore functionality implied by the @ sign)
by rames44
Fri Feb 08, 2019 12:29 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Renpy not recognizing JDK
Replies: 3
Views: 381

Re: [Solved] Renpy not recognizing JDK

The JAVA_HOME variable is used by a LOT of stuff to see if Java is installed (and to find it) but for some reason the installers don’t tend to set it. Never understood that, because it’s part of the Oracle documentation, as opposed to having been made up by the community or some such. Glad you’re up...
by rames44
Thu Feb 07, 2019 12:58 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Renpy not recognizing JDK
Replies: 3
Views: 381

Re: Renpy not recognizing JDK

Just a guess, - in addition to have put the java bin directiory in the path, is JAVA_HOME set to the root of the Java install?
by rames44
Thu Feb 07, 2019 12:53 pm
Forum: Ren'Py Questions and Announcements
Topic: Cropping an image repositions it? Why?
Replies: 5
Views: 353

Re: Cropping an image repositions it? Why?

Well, where is the anchor point on the image? If it’s in the center, then cropping is going to change the upper left corner position, since the image will be smaller.
by rames44
Wed Feb 06, 2019 12:18 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] when the changed variables are added to saves?
Replies: 6
Views: 496

Re: when the changed variables are added to saves?

Apologies for the long delay in response - I was away. You're correct that renpy.retain_after_load() apparently doesn't work with screens that are displayed via "show screen" and variables they modify. It does, however, work with screens that are displayed via "call": default save_num = 0 screen sav...
by rames44
Tue Feb 05, 2019 12:46 pm
Forum: Ren'Py Questions and Announcements
Topic: Making an non-quittable when pressing ESC
Replies: 3
Views: 285

Re: Making an non-quittable when pressing ESC

I’m going to echo the conventional sentiment here that disabling the standard keys that lots of users expect to work is probably a bad idea, but... The functions that keys perform are controlled by they “keymap.” If you read the documentation page called “Customizing the Keymap” (sorry I can’t give ...
by rames44
Tue Feb 05, 2019 12:40 pm
Forum: Ren'Py Questions and Announcements
Topic: Cropping an image repositions it? Why?
Replies: 5
Views: 353

Re: How does the cropping work exactly? Can't seem to figure it out.

Part of your problem is likely the fact that images are defined at “init” time, which happens well before your “show” and “python” code runs. Basically, I’m pretty sure you can’t get variables to interpolate into ATL at runtime like that. You need something that’s dynamic, which vanilla images aren’...
by rames44
Mon Feb 04, 2019 1:08 pm
Forum: Ren'Py Questions and Announcements
Topic: How to let the person choose the "password"?
Replies: 2
Views: 214

Re: How to let the person choose the "password"?

Then what you need is a second variable to hold the “personal” password and an “input” process so that they can set it. Then you can do something like

Code: Select all

if typedpassword != personal_password and typedpassword != fallback_password:
    show screen wrongpassword
    ...
by rames44
Thu Jan 31, 2019 2:04 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] when the changed variables are added to saves?
Replies: 6
Views: 496

Re: when the changed variables are added to saves?

Well, your code shows your screen code, but doesn’t show how you’re using the screen you defined. Can you post a sample that fully shows the problem?
by rames44
Wed Jan 30, 2019 12:33 pm
Forum: Ren'Py Questions and Announcements
Topic: How can I draw lines dynamically to make a grid?
Replies: 2
Views: 210

Re: How can I draw lines dynamically to make a grid?

You could do this with a Creator-Defined Displayable. Within those, you have access to the underlying pygame surface and drawing primitives. Basically, have the CDD draw the lines, leaving the rest of the resulting render transparent, and then show the CDD, as you would any other displayable/image, ...
by rames44
Wed Jan 30, 2019 12:28 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] when the changed variables are added to saves?
Replies: 6
Views: 496

Re: when the changed variables are added to saves?

I’m guessing that you’re calling the screen, and saving while the screen is still active. When Ren’py does a restore, it effectively rolls back to the beginning of the last command. Thus, to the beginning of the “call screen,” and so your variable has the pre-screen value. What you need is renpy.ret...