Search found 1912 matches

by philat
Wed Apr 22, 2015 11:11 am
Forum: Ren'Py Questions and Announcements
Topic: Question about call and _return [SOLVED]
Replies: 8
Views: 864

Re: Question about call and _return

Is the issue that you want the screen to stay up? Then yes, you want to use show, not call. I haven't run the following, but seems like it should work. You can also fiddle around with SetVariable or Jump to achieve similar results, if necessary. screen blahblah(): has vbox textbutton "1" a...
by philat
Tue Apr 21, 2015 7:22 pm
Forum: Ren'Py Questions and Announcements
Topic: Question about call and _return [SOLVED]
Replies: 8
Views: 864

Re: Question about call and _return

It's not that the screen isn't hidden -- it is, but then it is immediately re-shown, because the label test_screen shows the blah blah blah screen, and then immediately returns and jumps to test_menu, which then calls test_buttons. Basically, the problem is that none of the things that happen betwee...
by philat
Mon Apr 20, 2015 4:21 pm
Forum: Ren'Py Questions and Announcements
Topic: If statements don't work with custom variables
Replies: 6
Views: 792

Re: If statements don't work with custom variables

All of the above answers are correct. I just also want to add: I find the most readable version of "if race is A or B" is the following. if race in ["dwarf", "gnome"]: It's also the most easily extensible -- if it becomes three or four things you want to check against, ...
by philat
Sun Apr 19, 2015 6:38 pm
Forum: Ren'Py Questions and Announcements
Topic: defer hiding say statement until a certain point is reached
Replies: 5
Views: 1650

Re: defer hiding say statement until a certain point is reac

I have no wisdom on what code is good or bad, but for the specific problem you have, wouldn't it be good enough to use {w} instead of pause? If the problem is transitions taking time, you could also use ATL instead of transitions.
by philat
Sun Apr 19, 2015 1:06 pm
Forum: Ren'Py Questions and Announcements
Topic: AttributeError in extra .rpy file
Replies: 7
Views: 1139

Re: AttributeError in extra .rpy file

Leon's screen code is in a for loop; yours is not. Renpy therefore thinks 'item' doesn't exist.
by philat
Sat Apr 18, 2015 10:43 am
Forum: Ren'Py Questions and Announcements
Topic: Sphyngomanometer and transitions?
Replies: 2
Views: 857

Re: Sphyngomanometer and transitions?

Is the issue that you want to decrease the pressure in real time? Try using a timer to decrease pressure, and use an ATL transform to rotate the needle as needed -- or something, anyway. Maybe take a look at trooper6's clock tutorial -- it should use a lot of the same concepts you need. http://lemma...
by philat
Sat Apr 18, 2015 9:42 am
Forum: Ren'Py Questions and Announcements
Topic: Reading randomized dialogue from file [SOLVED]
Replies: 22
Views: 5724

Re: Reading randomized dialogue from file [SOLVED]

Actually, in addition to what rockets said, you'd also need to put questions.csv in quotes -- it needs to be a string.
by philat
Sat Apr 18, 2015 12:02 am
Forum: Ren'Py Questions and Announcements
Topic: How to make progression purely based on player clicks
Replies: 8
Views: 1280

Re: How to make progression purely based on player clicks

You could also just use pause.

Code: Select all

label start:
    show image1

    pause

    show image2

    pause

    menu:    
        "Choice 1":    
            pass    
        "Choice 2":    
            pass

by philat
Fri Apr 17, 2015 7:06 pm
Forum: Ren'Py Questions and Announcements
Topic: Probably a newb question about screens and layers.
Replies: 2
Views: 604

Re: Probably a newb question about screens and layers.

I would think it's better to use SensitiveIf and a variable. screen blahblah(): imagemap: # standard stuff hotspot (x, y, w, h) action [SensitiveIf(wall_var), WhateverYouWantedTheActionToBe] if wall_var == False: add "wall_image" # obviously add this at appropriate coordinates so it covers...
by philat
Fri Apr 17, 2015 6:58 pm
Forum: Ren'Py Questions and Announcements
Topic: Arrays of images?
Replies: 1
Views: 705

Re: Arrays of images?

Better way to do it is probably using ATL. http://lemmasoft.renai.us/forums/viewto ... 51&t=16604 Scroll down to randomized lightning and see how to use choice.
by philat
Fri Apr 17, 2015 9:17 am
Forum: Ren'Py Questions and Announcements
Topic: How to implement negative affection in stat screen [CLOSED]
Replies: 2
Views: 1236

Re: How to implement negative affection in stat screen

One simpler way would be to have affection points in a range of 0 - 200 and have the bar image itself show colors. example: http://lemmasoft.renai.us/forums/viewtopic.php?f=8&t=30243#p355434 On the other hand, you can easily use an if in the screen and style the bars appropriately. screen bars()...
by philat
Thu Apr 16, 2015 8:52 pm
Forum: Ren'Py Questions and Announcements
Topic: Incredibly simple character customization question
Replies: 4
Views: 696

Re: Incredibly simple character customization question

I'd imagine it's because of the operator. Use and instead of &&.