Search found 12 matches

by littleharbour
Sat May 18, 2024 9:57 am
Forum: Ren'Py Questions and Announcements
Topic: Using multiple properties with the 'show' statement?
Replies: 2
Views: 219

Using multiple properties with the 'show' statement?

Hello! I have a scene where I would like to have an image on top of the textbox, as well as add an animation. Here is my code: show closed_phone_left onlayer over_screens at phone_shake I would like to add an animation with the 'at' statement, is there a way to do this? Or is there another way to do...
by littleharbour
Fri Mar 08, 2024 8:53 am
Forum: Ren'Py Questions and Announcements
Topic: MoveTransition with ease [SOLVED]
Replies: 5
Views: 384

Re: MoveTransition with ease

PS. If you discover that effects like "on hide" don't work with say screen, then it's normal. I recall that from before: next screen replaces it instantly or something like this. New content coming instantly is good from the point of view of user experience, so I think it's alright. PPS. ...
by littleharbour
Fri Mar 08, 2024 8:53 am
Forum: Ren'Py Questions and Announcements
Topic: MoveTransition with ease [SOLVED]
Replies: 5
Views: 384

Re: MoveTransition with ease

I'm not sure what is the best way, but the documentation recommends to create transforms in "Animation and Transformation Language", rather than with Python scripts, as that allows to do more: https://renpy.org/doc/html/atl.html Then you could set # define config.window_show_transition = ...
by littleharbour
Fri Mar 08, 2024 7:06 am
Forum: Ren'Py Questions and Announcements
Topic: MoveTransition with ease [SOLVED]
Replies: 5
Views: 384

MoveTransition with ease [SOLVED]

Hi! I'm trying to make a custom animation for when the textbox appears, but I'm having some problems with the movement. Here is the code for my movement transitions: define move_in = MoveTransition(0.2, enter=d, leave=u, layers=['master']) define move_out = MoveTransition(0.2, enter=u, enter_time_wa...
by littleharbour
Wed Mar 06, 2024 6:59 am
Forum: Ren'Py Questions and Announcements
Topic: Conditional switch for if the textbox is showing or not?
Replies: 3
Views: 200

Re: Conditional switch for if the textbox is showing or not? [SOLVED]

Hey! I want to have an animation for when the textbox appears for the first time (i.e in the beginning of the game or after a scene change) and another one for when the text changes. I have some problems with figuring out how to set up a conditional switch for if the textbox is showing or not, or i...
by littleharbour
Wed Mar 06, 2024 6:58 am
Forum: Ren'Py Questions and Announcements
Topic: Conditional switch for if the textbox is showing or not?
Replies: 3
Views: 200

Re: Conditional switch for if the textbox is showing or not?

Maybe you could use config.window_show_transition or something. See https://renpy.org/doc/html/dialogue.html#dialogue-window-management The next part of documentation is interesting too - if you sometimes want to show the dialog box in some special way, using parameters. You can use your own custom...
by littleharbour
Tue Mar 05, 2024 10:20 am
Forum: Ren'Py Questions and Announcements
Topic: Conditional switch for if the textbox is showing or not?
Replies: 3
Views: 200

Conditional switch for if the textbox is showing or not?

Hey! I want to have an animation for when the textbox appears for the first time (i.e in the beginning of the game or after a scene change) and another one for when the text changes. I have some problems with figuring out how to set up a conditional switch for if the textbox is showing or not, or if...
by littleharbour
Mon Mar 04, 2024 7:02 am
Forum: Ren'Py Questions and Announcements
Topic: Changing anchor point when squashing? [SOLVED]
Replies: 7
Views: 920

Re: Changing anchor point when squashing?

If the transforms have xalign 1.0 yalign 1.0 it's the same as pos (1.0, 1.0) anchor (1.0, 1.0) i.e. pictures at these transforms are aligned to bottom-right and their anchor is at bottom right. I think that during transformations it remains the same: all frames have anchor at bottom-right. Therefor...
by littleharbour
Fri Mar 01, 2024 5:16 am
Forum: Ren'Py Questions and Announcements
Topic: Changing anchor point when squashing? [SOLVED]
Replies: 7
Views: 920

Re: Changing anchor point when squashing?

Nevermind that I said "composite", it's just a word I used to say that two things are set with one statement. As I understand, you want stretching to go from the picture's center. Then perhaps set "anchor (0.5, 0.5)", and that should (?) work. Then achieve proper positioning wit...
by littleharbour
Thu Feb 29, 2024 10:54 am
Forum: Ren'Py Questions and Announcements
Topic: Changing anchor point when squashing? [SOLVED]
Replies: 7
Views: 920

Re: Changing anchor point when squashing?

I don't quite understand the whole picture, more code could be useful. Note that align (as well as xalign, yalign) is a "composite" property: Equivalent to setting (x/y)pos and (x/y)anchor to the same value. https://www.renpy.org/doc/html/style_properties.html#style-property-xalign If anc...
by littleharbour
Thu Feb 29, 2024 8:45 am
Forum: Ren'Py Questions and Announcements
Topic: Changing anchor point when squashing? [SOLVED]
Replies: 7
Views: 920

Changing anchor point when squashing? [SOLVED]

Hi! I have a question about anchor points when squashing and stretching sprites. I want to make a little transition between sprites where they do a squash and stretch when they change, but the squash from the middle of the sprite. transform squash: xalign 0.5 yalign 1.0 xzoom 0.75 yzoom 1.30 linear ...
by littleharbour
Thu Oct 12, 2023 9:10 am
Forum: Ren'Py Questions and Announcements
Topic: Return button skips a line of dialogue [Solved]
Replies: 1
Views: 536

Return button skips a line of dialogue [Solved]

Hi! I'm trying to make a custom in-game menu, but when I click the return button it skips a line of dialouge. How do I make it return to the same spot when the user clicked the menu? Here is my code for the screen: screen game_menu_custom(): style_prefix "game_menu_custom" add "UI/gam...