Search found 389 matches

by IrinaLazareva
Thu Aug 13, 2020 9:21 am
Forum: Ren'Py Questions and Announcements
Topic: Create two splash screens
Replies: 6
Views: 537

Re: Create two splash screens

My code : # The "splashscreen" label automatically plays before the main menu. label splashscreen : scene black_screen show splashscreen1 with dissolve pause 12.0 hide splashscreen1 with dissolve show splashscreen2 with dissolve pause 6.0 hide splashscreen2 with dissolve return Expected result : Wh...
by IrinaLazareva
Thu Aug 13, 2020 3:59 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Define Images After Initialization?
Replies: 2
Views: 242

Re: Define Images After Initialization?

Code: Select all

default morgan = 0
image mcav = "mc/[morgan]av.png"

label start:
    "Choose your appearance!"
    call screen character_select
    $ morgan = _return
by IrinaLazareva
Thu Aug 06, 2020 9:36 am
Forum: Ren'Py Questions and Announcements
Topic: Is there a simpler way to make multiple choices in a row?
Replies: 2
Views: 247

Re: Is there a simpler way to make multiple choices in a row?

Are you looking for a simpler solution or a more optimized one? I suppose your code is simple enough and does not require simplification. There is a golden rule, if the code works, it's better not to touch it. If it's about optimization. Then yes, there are ways. For example, a menu statement alread...
by IrinaLazareva
Thu Aug 06, 2020 9:13 am
Forum: Ren'Py Questions and Announcements
Topic: solved - Fourth variable not setting
Replies: 2
Views: 158

Re: Fourth variable not setting

It's not quite clear, but..

Code: Select all

if 'forest' == 1:
if 'forest' ('waterfall' / 'castle' / 'caves' ) is variable, it should be unquoted:

Code: Select all

   if forest == 1:
if 'forest' is a value of another variable, for example, choice_0, it should be:

Code: Select all

if choice_0 == 'forest':
by IrinaLazareva
Tue Aug 04, 2020 8:04 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Pause movie on last frame?
Replies: 3
Views: 224

Re: Pause movie on last frame?

The video's playback system in renpy is not as advanced, unfortunately. So image only, yet. (Anyway, it's easier to do than trying to rewrite a standard code). Another idea that comes to mind: use the animation at the end of the video, i.e. several interchangeable images to smooth the overall impres...
by IrinaLazareva
Mon Aug 03, 2020 10:41 am
Forum: Ren'Py Questions and Announcements
Topic: indentation mismatch
Replies: 2
Views: 62

Re: indentation mismatch

try # The script of the game goes in this file. # Declare characters used by this game. The color argument colorizes the # name of the character. define oskar = Character("Oskar", color = "#6E0980") image oskar = "images/pj/Oscar.png" define clev = Character("Clev") image clev = "images/pj/Clev.png...
by IrinaLazareva
Sat Aug 01, 2020 8:58 am
Forum: Ren'Py Questions and Announcements
Topic: notify screen
Replies: 2
Views: 279

Re: notify screen

The purpose of the conversions flags !tq is described in doc.


P.S.You can eliminate the need to change the standard screen, for example, as follows:

Code: Select all

    $ coins = 1000
    $ renpy.notify("You\'ve gained {} coins".format(coins))
by IrinaLazareva
Sun Jul 26, 2020 4:09 pm
Forum: Ren'Py Questions and Announcements
Topic: Error When Adding New Audio Channel
Replies: 4
Views: 267

Re: Error When Adding New Audio Channel

Oh! It worked when I put it into options. Do you mind explaining it? I thought init was something innate when you start running the code. If not that's okay, too, I'll just try and look it up for myself. I appreciate the assist tho! look this https://www.renpy.org/doc/html/python.html#init-python-s...
by IrinaLazareva
Sun Jul 26, 2020 11:03 am
Forum: Ren'Py Questions and Announcements
Topic: Error When Adding New Audio Channel
Replies: 4
Views: 267

Re: Error When Adding New Audio Channel

Code: Select all

init python:
    renpy.music.register_channel("nature", "sfx", loop=True)
by IrinaLazareva
Fri Jul 24, 2020 3:35 pm
Forum: Ren'Py Questions and Announcements
Topic: How do I replace existing images?
Replies: 1
Views: 262

Re: How do I replace existing images?

doorknob22 wrote:
Wed Jul 22, 2020 8:54 am
I added an image named "image a" and compiled the game.
Images may have been archived. Check the files with .rpa extension in a game folder. If there are any, remove them.
by IrinaLazareva
Sun Jul 12, 2020 10:41 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Conditional side image
Replies: 5
Views: 334

Re: Conditional side image

in init: default main_character = 'J.M.' define mc = Character('main_character', dynamic=True, image='mc', color='#ffbfff', ) image side mc = 'some_picture.jpg' in screen say(): if not renpy.variant("small"): if who==main_character: add SideImage() xalign .65 yalign .8 else: add SideImage() xalign ....
by IrinaLazareva
Fri Jul 10, 2020 6:45 am
Forum: Ren'Py Questions and Announcements
Topic: Problem with changing the icon
Replies: 2
Views: 290

Re: Problem with changing the icon

look this viewtopic.php?f=8&t=59067
PyTom wrote: The window icon and the icon.ico file are two different things - one controls in-game, and one controls before the game is launched.
by IrinaLazareva
Thu Jul 02, 2020 2:22 am
Forum: Ren'Py Questions and Announcements
Topic: Returning to menu with fewer options without loop
Replies: 1
Views: 268

Re: Returning to menu with fewer options without loop

There are several ways. The easiest: default stepone = False default steptwo = False default stepthree = False label start: # menu act: 'These are the activities!' 'step one' if not stepone: $ stepone = True "Let's....whatever" jump act 'step two' if not steptwo: $ steptwo = True # jump act 'step th...
by IrinaLazareva
Mon Jun 29, 2020 10:31 am
Forum: Ren'Py Questions and Announcements
Topic: Numbers problem
Replies: 3
Views: 297

Re: Numbers problem

$ money = 200 $ sayd = int(renpy.input("how much?", allow=['0','1','2','3','4','5','6','7','8','9']) or 0) ## at this step, you can enter a condition if you need it. Like: if sayd > 200: ... elif .. else). $ sum = money - sayd 'You say [sayd]? The rezult of operation is [sum]' https://docs.python.o...