Search found 272 matches

by IrinaLazareva
Sat Dec 08, 2018 1:01 pm
Forum: Ren'Py Questions and Announcements
Topic: Is it possible to make a "variable" screen?
Replies: 4
Views: 78

Re: Is it possible to make a "variable" screen?

screen bedroom(hero = 'default'): if hero== 'Mary': text 'something_about_Mary' # add, style, buttons and etc.... elif hero=='Janet': text 'something_about_Janet' elif hero=='Claire': text 'something_about_Claire' else: text 'default' label start: menu: 'Mary': show screen bedroom('Mary') 'Janet': ...
by IrinaLazareva
Wed Nov 21, 2018 11:24 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Help?? Side image not showing up.
Replies: 4
Views: 153

Re: [HELP??] Side image not showing up.

But it isn't positioned on the textbox. How do I do that? By default, the side image is tied to the say () screen (see screens.rpy file) screen say(who, what): style_prefix "say" window: id "window" if who is not None: window: id "namebox" style "namebox" text who id "who" text what id "what" ## If...
by IrinaLazareva
Fri Nov 09, 2018 2:07 pm
Forum: Ren'Py Questions and Announcements
Topic: random chapter selection
Replies: 4
Views: 105

Why screen?

label start: 'Begin' label chse: jump expression renpy.random.choice(['ad1', 'ad2', 'ad3']) label ad1: "result = 1" return label ad2: "result = 2" return label ad3: "result = 3" return https://www.renpy.org/doc/html/label.html#jump-statement https://www.renpy.org/doc/html/other.html#renpy-random
by IrinaLazareva
Tue Nov 06, 2018 3:35 pm
Forum: Ren'Py Questions and Announcements
Topic: Current Battery Level
Replies: 9
Views: 320

Re: Current Battery Level

Well, using a python block ( especially , the import $ block) inside a screen is not the really good idea... Don't ask, I can't explain because of language barrier. https://www.renpy.org/doc/html/screens.html#python https://www.renpy.org/doc/html/screens.html#default https://www.renpy.org/doc/html/s...
by IrinaLazareva
Mon Nov 05, 2018 10:57 am
Forum: Ren'Py Questions and Announcements
Topic: Current Battery Level
Replies: 9
Views: 320

Re: Current Battery Level

a)current date:
viewtopic.php?f=8&t=37939&p=410599#p410599

b)current battery:

Code: Select all

init python:
    import pygame_sdl2
    bat = pygame_sdl2.power.get_power_info().percent
    
label start:
    '[bat] %%'
by IrinaLazareva
Mon Nov 05, 2018 4:59 am
Forum: Ren'Py Questions and Announcements
Topic: Ren'Py 7.1.1 Released
Replies: 16
Views: 1319

About russian translate in Ren'Py 7.1.1

In the launcher's text there are several typos: original "To build Android packages, please download RAPT, unzip it, and place it into the Ren'Py directory. Then restart the Ren'Py launcher." russian "Чтобы построить Android-пакет, пожалуйста, загрузите RAPT, разархивируйте его и поместить в директо...
by IrinaLazareva
Sun Nov 04, 2018 10:32 am
Forum: Ren'Py Questions and Announcements
Topic: [solved] Is there a way I can let the player choose the background they want?
Replies: 2
Views: 88

Re: Is there a way I can let the player choose the background they want?

For example, there are three images: beda.jpg, bedb.jpg, bedc.jpg. default xch = 'a' image bedroom = 'bed[xch].jpg' screen choscene(): text 'Choose your destiny' align(.5, .2) hbox at truecenter: spacing 10 imagebutton idle im.FactorScale('beda.jpg', .3) action SetVariable('xch', 'a'), Return() imag...
by IrinaLazareva
Sun Nov 04, 2018 4:26 am
Forum: Ren'Py Questions and Announcements
Topic: How to add a side image?
Replies: 2
Views: 100

Re: How to add a side image?

If you need emotions image side emily = "emily_file.png" image side emily smile = "smile_emily_file.png" image side emily sad = "sad_emily_file.png" define e = Character("Emily", image="emily") label start: e "Just me" e smile "I'm smile" e sad "I'm sad" e "Just me again" return
by IrinaLazareva
Sun Nov 04, 2018 4:22 am
Forum: Ren'Py Questions and Announcements
Topic: How to add a side image?
Replies: 2
Views: 100

Re: How to add a side image?

Code: Select all

define e = Character("Emily", image="emily")
image side emily = "Emily/Side_Emily_Smile_eyes_closed.png"
by IrinaLazareva
Sat Nov 03, 2018 4:09 am
Forum: Ren'Py Questions and Announcements
Topic: (Basic Question) Replacing character portraits when the speaker changes?
Replies: 2
Views: 127

Re: (Basic Question) Replacing character portraits when the speaker changes?

well, as one of possible decisions: 1) change the say() screen in screens.rpy : ## https://www.renpy.org/doc/html/screen_special.html#say screen say(who, what): style_prefix "say" window: id "window" if who is not None: window: id "namebox" style "namebox" text who id "who" text what id "what" ## If...
by IrinaLazareva
Sat Nov 03, 2018 3:51 am
Forum: Ren'Py Questions and Announcements
Topic: Help with Remembering Booleans
Replies: 2
Views: 137

Re: Help with Remembering Booleans

You can use ToggleVariable () or SetVariable() actions. https://renpy.org/doc/html/screen_actions.html#ToggleVariable https://renpy.org/doc/html/screen_actions.html#SetVariable Here simple example default step1 = False default step2 = False default step3 = False screen test(): if step1: label 'on' x...
by IrinaLazareva
Sat Nov 03, 2018 3:34 am
Forum: Ren'Py Questions and Announcements
Topic: Indentation Error And Points System
Replies: 2
Views: 119

Re: Indentation Error And Points System

# The game starts here. label start: # Tea is important but Indentation is more important $tea = 0 $mint = 0 $berry = 0 $beef = 0 # Show a background. This uses a placeholder by default, but you can # add a file (named either "bg room.png" or "bg room.jpg") to the # images directory to show it. sce...