Search found 399 matches

by IrinaLazareva
Sun Sep 01, 2019 4:48 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] can somebody test this code and tell me the result please
Replies: 12
Views: 1024

Re: can somebody test this code and tell me the result please

Hmm, It's even more strange if the numbers are replaced with letters... (I've also tested in old versions, the same result.)
by IrinaLazareva
Wed Aug 28, 2019 5:27 pm
Forum: Ren'Py Questions and Announcements
Topic: $ renpy.show and image directory
Replies: 31
Views: 2340

Re: $ renpy.show and image directory

I would like to add that for the program to work correctly, the name of the file, folder, or directory must begin with a letter, not a number.
by IrinaLazareva
Sat Aug 24, 2019 4:13 pm
Forum: Ren'Py Questions and Announcements
Topic: Scene command is incorrectly showing other scenes
Replies: 6
Views: 1013

Re: Scene command is incorrectly showing other scenes

The transparent background will be black after the game is released. But if it is crucial, you can use this instead of «hide bg orange»:

Code: Select all

    scene black with fade
by IrinaLazareva
Fri Aug 23, 2019 1:15 pm
Forum: Ren'Py Questions and Announcements
Topic: Scene command is incorrectly showing other scenes
Replies: 6
Views: 1013

Re: Scene command is incorrectly showing other scenes

Showing of the screen main() does not remove the last image (bg orange). The screen just overlaps it. For a better understanding of the problem, you can temporarily use a small image (for example, 200x200) instead of 'images/ bg black .jpg' file... Anyway, a possible solving is: label two(): scene b...
by IrinaLazareva
Fri Aug 23, 2019 12:04 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] Screen with choice of gender
Replies: 2
Views: 546

Re: Screen with choice of gender

call screen choise_gender if renpy.call_screen("Female") : $ gender = f label start: call screen choise_gender if _return == "Female": $ gender = 'f' https://www.renpy.org/doc/html/screen_actions.html#Return P.S. if desired, you can directly change the value of the variable with ...
by IrinaLazareva
Thu Aug 22, 2019 12:35 pm
Forum: Ren'Py Questions and Announcements
Topic: Music in specific screen only
Replies: 1
Views: 484

Re: Music in specific screen only

screen demo_imagemap(): # <elements of the screen> on 'show' action Play('music', 'music_file.mp3', fadein=0.4, fadeout=1.0) on 'hide' action Stop('music', fadeout=2.7) https://renpy.org/doc/html/screen_actions.html#Play https://renpy.org/doc/html/screen_actions.html#Stop https://renpy.org/doc/html...
by IrinaLazareva
Thu Aug 22, 2019 7:10 am
Forum: Ren'Py Questions and Announcements
Topic: Annoying/inconsequental error at the start of every game
Replies: 18
Views: 1524

Re: Annoying/inconsequental error at the start of every game

What is the purpose of this button exactly? instead of having to choose a save file every time you want to continue a play session after closing the game, it picks up an autosave and continues from where you left off. pretty nifty! if it worked, that is https://lemmasoft.renai.us/forums/viewtopic.p...
by IrinaLazareva
Sun Aug 18, 2019 4:56 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Capitalizing a customised name
Replies: 9
Views: 748

Re: Capitalizing a customised name

screen say(who, what): style_prefix "say" window: id "window" if who is not None: window: id "namebox" style "namebox" text who id "[player_name]" text what id "what" You need to change one line in the say screen only: text who.upper() id ...
by IrinaLazareva
Sun Aug 18, 2019 4:43 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Noob's question about jumps and labels
Replies: 2
Views: 559

Re: Noob's question about jumps and labels

use call instead of jump https://www.renpy.org/doc/html/label.html#call-statement 4example: label magicplace: 'this is magic place' return <<< this line is necessary. label start: 'Bla bla point A' call magicplace 'bla bla point B' call magicplace 'Bla bla' 'Bla bla point C' call magicplace '...' re...
by IrinaLazareva
Sun Aug 18, 2019 4:28 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Capitalizing a customised name
Replies: 9
Views: 748

Re: Capitalizing a customised name

Pretty simple :D I'm not sure if the .upper() will work since I only want the customized name to be capitalized in the namebox, not within the dialogue the characters speak? :o In that case .upper() method can only be applied to the say() screen (screens.rpy file): screen say(who, what): ## element...
by IrinaLazareva
Wed Aug 14, 2019 5:12 am
Forum: Ren'Py Questions and Announcements
Topic: Problems With Using a Python List for Randomization [Solved]
Replies: 3
Views: 575

Re: Problems With Using a Python List for Randomization

By the way, this code if morningclass == 1: jump ClassesSF elif morningclass == 2: jump ClassesNF elif morningclass == 3: jump ClassesGF elif morningclass == 4: jump ClassesRF elif morningclass == 5: jump ClassesCG elif morningclass == 6: jump ClassesMM else: jump MorningClassesNA can be optimized: ...
by IrinaLazareva
Wed Aug 14, 2019 4:46 am
Forum: Ren'Py Questions and Announcements
Topic: Problems With Using a Python List for Randomization [Solved]
Replies: 3
Views: 575

Re: Problems With Using a Python List for Randomization

I think the source of the problem here init python: event_list = [3, 5, 6] import random randomeventlist = random.sample(event_list, 2) morningclass = randomeventlist[0] afternoonclass = randomeventlist[1] This block will be read by the program first and once at the time of loading and will not be c...
by IrinaLazareva
Fri Aug 09, 2019 7:28 am
Forum: Ren'Py Questions and Announcements
Topic: renpy.sound.play() doesn't work on 7.3.2
Replies: 8
Views: 991

Re: renpy.sound.play() doesn't work on 7.3.2

I think I get it. The problem is not the function, but the file format. It seems like renpy 7.3.2 no longer supports playback of wav (including uncompressed PCM) files.
by IrinaLazareva
Fri Aug 09, 2019 4:51 am
Forum: Ren'Py Questions and Announcements
Topic: renpy.sound.play() doesn't work on 7.3.2
Replies: 8
Views: 991

Re: renpy.sound.play() doesn't work on 7.3.2

Honestly, I'm surprised this method worked in version 7. This function has been obsolete for a long time. You can use renpy.music.play() instead.
https://renpy.org/doc/html/audio.html#renpy.music.play
For example,

Code: Select all

$ renpy.music.play("example.ogg", channel='sound', loop=None)