Search found 3094 matches

by Alex
Sun Sep 17, 2023 9:48 am
Forum: Ren'Py Questions and Announcements
Topic: Default translation[SOLVED]
Replies: 5
Views: 1065

Re: Default translation

... It's in Russian in beginning, but when I copy all my files to the new project, it's a mess again. I cannot copy just script.rpy, I copy screen.rpy as well, as I have lots of new stuff there... ... You shouldn't copy all the files, only files with game script. As for screens.rpy - copy/paste onl...
by Alex
Sun Sep 17, 2023 6:12 am
Forum: Ren'Py Questions and Announcements
Topic: Default translation[SOLVED]
Replies: 5
Views: 1065

Re: Default translation

Hi guys. I created a project with English language (I think). In fact default language in scripts of the project is Russian. I want all messages in game, like - "Are you sure you want to quit game?" to be in Russian by default as well. ... Try to set russian language in launcher preferenc...
by Alex
Tue Sep 12, 2023 6:09 pm
Forum: Ren'Py Questions and Announcements
Topic: Opening a screen with a move transition [SOLVED]
Replies: 2
Views: 749

Re: Opening a screen with a move transition

Try to apply transform to the screen content (like, to your imagemap inside a screen) or put all the content inside a container (fixed, frame, hbox, vbox, etc.) and apply transform to it - viewtopic.php?f=8&t=66826#p561551
by Alex
Mon Sep 11, 2023 5:01 pm
Forum: Ren'Py Questions and Announcements
Topic: Jump to Different Label When Pressing Different Key
Replies: 2
Views: 758

Re: Jump to Different Label When Pressing Different Key

... Try it like screen qte_1_scr(right_key, time_to_press, fail_label='', win_label=''): # just a mark for test purposes text "qte_1_scr is shown" align (0.5, 0.05) # to force player interact with the screen modal True # hide the screen and jump to fail_label after time is gone # (if fail...
by Alex
Mon Sep 04, 2023 2:58 pm
Forum: Ren'Py Questions and Announcements
Topic: Transfering focus to the most foreground screen
Replies: 5
Views: 7512

Re: Transfering focus to the most foreground screen

... I have made an other recipe book screen, so the player knows what to buy, and I use the... "use" statement to make it appear. ... The 'use' statement allows a screen to include another, so the 'modal' property is working only for outer screen (the screen that is really showing). Try t...
by Alex
Sat Aug 26, 2023 11:09 am
Forum: Ren'Py Questions and Announcements
Topic: Aligning/anchoring draggables
Replies: 4
Views: 1112

Re: Aligning/anchoring draggables

...I tried it like this but the result didn't change... Well, yes... Looks like draggables are positioned onscreen witn anchor(0.0, 0.0). So, to show smaller image in the center of the area of bigger image you need to keep the original size of the draggable and position smaller image with offset. H...
by Alex
Thu Aug 24, 2023 3:49 pm
Forum: Ren'Py Questions and Announcements
Topic: Aligning/anchoring draggables
Replies: 4
Views: 1112

Re: Aligning/anchoring draggables

jepp21 wrote: Wed Aug 23, 2023 7:58 pm ...
It's quite strange that object shrinks when player hovers it... Anyway, try to align not selected_hover image, but the whole draggable object.
by Alex
Sun Aug 20, 2023 4:34 am
Forum: Ren'Py Questions and Announcements
Topic: Issues Converting Floats to Integers for Gallery Shooting Mini Game
Replies: 3
Views: 293

Re: Issues Converting Floats to Integers for Gallery Shooting Mini Game

... Try to int both values of 'cork_gun_pos' inside 'corkGunTransform' function cork_gun_pos = (int(mousepos[0] - cork_gun_size[0] / 2), int(cork_gun_opos[1])) cork_gun_pos = (int(cork_gun_pos[0]), int(cork_gun_opos[1] + (mousepos[1] - config.screen_height / 2) / 7)) Also, in this line $ cork_gun_t...
by Alex
Thu Aug 10, 2023 2:35 pm
Forum: Ren'Py Questions and Announcements
Topic: Closing CDD screen by function
Replies: 9
Views: 458

Re: Closing CDD screen by function

m_from_space wrote: Thu Aug 10, 2023 4:43 am Interesting! Does this mean, that Return() just executes "end_interaction()" or something like it?
You can check the code in '00action_other.rpy' inside a 'renpy/common' folder.
by Alex
Thu Aug 10, 2023 2:27 pm
Forum: Ren'Py Questions and Announcements
Topic: Use a transition with python equivalent of call screen
Replies: 5
Views: 3799

Re: Use a transition with python equivalent of call screen

I don't understand why the pair of extra brackets at the end though. 'With' is a screen action, but it can be used outside screen, 'cause it's a function. The difference from the ordinary function is that you need to put screen action's parameters inside brackets and add another pair of empty brack...
by Alex
Mon Aug 07, 2023 1:56 pm
Forum: Ren'Py Questions and Announcements
Topic: Crashing while playing mini-game, click and hold
Replies: 2
Views: 492

Re: Crashing while playing mini-game, click and hold

Emperoxxx Anime wrote: Mon Aug 07, 2023 2:48 am ...
Just comment out this line

Code: Select all

from vec2d import vec2d
since 'vec2d' is not used in this code sample.
by Alex
Sat Aug 05, 2023 4:02 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Shooter Minigame Help - Seeking Refactoring/Organization Advice
Replies: 15
Views: 2967

Re: Shooter Minigame Help - Basic Randomization

thexerox123 wrote: Sat Aug 05, 2023 2:47 pm ...
For now you draw a player and a cloud over it (on a foreground). So try to add another cloud before player in render (at the background) and give it a different speed.
by Alex
Wed Aug 02, 2023 3:12 pm
Forum: Ren'Py Questions and Announcements
Topic: Use a transition with python equivalent of call screen
Replies: 5
Views: 3799

Re: Use a transition with python equivalent of call screen

Misamor98 wrote: Wed Aug 02, 2023 1:54 pm ...
Try it like

Code: Select all

    $ With(Dissolve(2.0))() # a pair of extra brackets at the end
    $ renpy.call_screen("Overlay", _layer="screens")
https://www.renpy.org/doc/html/screen_actions.html#With