Search found 99 matches

by DannX
Tue Mar 20, 2018 3:26 pm
Forum: Ren'Py Questions and Announcements
Topic: [FIXED]How make multiple "if" statements for choices (and other promblems)
Replies: 11
Views: 9419

Re: [STILL NOT FIXED]How make multiple "if" statements for choices (and other promblems)

Please read carefully what other people tell you, they've pointed out you don't have to put the $ sign in if statements, just use the variable names. So it should be: "I'm confident!" if trustful >= 0 and energy_reserve >= 2 and uncertainty == False: Also, in the lines below, it should be ...
by DannX
Tue Mar 20, 2018 11:30 am
Forum: Ren'Py Questions and Announcements
Topic: Using ATL on a Call screen
Replies: 1
Views: 389

Re: Using ATL on a Call screen

Not directly on the screen, but rather in the displayables themselves, you can use at statement the same way you use them in labels. transform my_transform: alpha 0 linear .5 alpha 1 screen test(): text "I can use ATL" at my_transform vbox: xpos .5 at my_transform text "Text 1" t...
by DannX
Mon Mar 19, 2018 1:10 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Weird "on replace/replaced" behaviour (was: screen tags and on show/on hide transforms)
Replies: 10
Views: 2219

Re: screen tags and on show/on hide transforms

I've been testing this for while. The only thing that has worked for me has been to make each button check if each screen is showing and program it to hide myself using If screen action. textbutton "Info": pos (1050, 50) text_color '#fff' action [If(not renpy.get_screen('infoscreen'), Show...
by DannX
Mon Mar 19, 2018 12:34 pm
Forum: Ren'Py Questions and Announcements
Topic: Embed an External Link in an Image (link to website)
Replies: 3
Views: 1969

Re: Embed an External Link in an Image (link to website)

Maybe what you need is a screen displaying an imagebutton with the OpenURL screen action: #The screen can be in any .rpy file, even one you create screen title_url(): #Add the imagebutton, providing the image name and the screen action #with the url you want to open. imagebutton idle 'Website_02' ac...
by DannX
Wed Mar 14, 2018 3:32 pm
Forum: Ren'Py Questions and Announcements
Topic: How to make timed text?
Replies: 7
Views: 1477

Re: How to make timed text?

Or you could use ATL:

Code: Select all

transform timed_hide(t):

    time t 
    linear .5 alpha 0

label start:

    show text "Hello World" at timed_hide(1)

    ""

    return
by DannX
Tue Mar 13, 2018 9:29 am
Forum: Ren'Py Questions and Announcements
Topic: About Exit Confirmation (X button / Alt F4) [Solved]
Replies: 2
Views: 870

Re: About Exit Confirmation (X button / Alt F4)

You could use the _confirm_quit variable. label start: "At this point the game asks for confirmation normally." "Now let's disable it and call the screen." $ _confirm_quit = False #Temporarily disable confirmation #Here you would show your timed choices $ _confirm_quit = True #Re...
by DannX
Tue Mar 13, 2018 9:04 am
Forum: Ren'Py Questions and Announcements
Topic: Can't get my clock working :/ [SOLVED]
Replies: 2
Views: 487

Re: Can't get my clock working :/

Shouldn't it be 'add' instead of 'show'? And I'm pretty sure the image names should be strings too...

Code: Select all

screen clock():
        vbox:
            if clock == 900:
                add 'clock/cl0.jpg'
                add 'clock/cl9.jpg'
https://www.renpy.org/doc/html/screens.html#add
by DannX
Mon Mar 12, 2018 3:15 pm
Forum: Ren'Py Questions and Announcements
Topic: I need help defining custom layers[Solved!]
Replies: 2
Views: 3174

Re: I need help defining custom layers

OMG thank you!!! That last init code snippet was exactly what I needed, I did read the documentation but I was unsure where or how to actually create and define the variables, that helped a lot really thank you. :D :D
by DannX
Mon Mar 12, 2018 11:47 am
Forum: Ren'Py Questions and Announcements
Topic: I need help defining custom layers[Solved!]
Replies: 2
Views: 3174

I need help defining custom layers[Solved!]

Hello, I've been testing Ren'Py and I've find it quite good so far, but I have a question. Reading through the documentation I've found that Renpy uses layers to display different things on screen, and of them the master layer is used to show both backgrounds and character sprites. I was wondering i...