Search found 14 matches

by NoFanru
Sat Nov 25, 2023 6:36 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] The value of persistent list changes if its value is assigned to a regular variable and changed it
Replies: 3
Views: 703

Re: The value of persistent list changes if its value is assigned to a regular variable and changed it using methods of

Yes, you just need to make sure that regular variable points to a copy and not the same list your persistent variable points to. Choose your approach: $ n = persistent.kk.copy() $ n = persistent.kk[:] $ n = list(persistent.kk) Ohh, thank you very much for your help, and I'm sorry that my question w...
by NoFanru
Sat Nov 25, 2023 4:02 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] The value of persistent list changes if its value is assigned to a regular variable and changed it
Replies: 3
Views: 703

[SOLVED] The value of persistent list changes if its value is assigned to a regular variable and changed it

I have a list as a persistent variable and I need to assign its value to a regular variable and change the value of the regular variable using Python methods for lists. However, changing the value of a regular variable also changes the value of persistent. Here's a simple example of what's happening...
by NoFanru
Sat Jul 29, 2023 12:09 am
Forum: Ren'Py Questions and Announcements
Topic: Is it possible to make a parallax effect that depends on the tilt of the android mobile device?
Replies: 2
Views: 200

Is it possible to make a parallax effect that depends on the tilt of the android mobile device?

I have seen many codes for parallax which depends on the position of the cursor. But in the case of android, this is not a good option. Is it possible to make parallax dependent on device tilt?

I can't find anything about this on the internet, any help would be greatly appreciated!
by NoFanru
Fri Jul 28, 2023 1:42 pm
Forum: Ren'Py Questions and Announcements
Topic: Make android long press/swipe not count as a press?
Replies: 0
Views: 4033

Make android long press/swipe not count as a press?

More specifically, I need to make that a long press or a simple swipe across the screen does not skip a pause or go to the next dialog

I would be grateful for any help!
by NoFanru
Tue Jul 25, 2023 12:49 pm
Forum: Ren'Py Questions and Announcements
Topic: Find out screen aspect ratio / screen resolution on android devices?
Replies: 1
Views: 169

Find out screen aspect ratio / screen resolution on android devices?

I want to make it so that if the screen ratio is not 16:9, then bars will be displayed on the sides of the screen, which would create a transition to black bars outside the game. For PC I used renpy.get_physical_size() to get the window size, but on Android it gives an error: 'NoneType' object has n...
by NoFanru
Sun Jul 23, 2023 2:06 am
Forum: Ren'Py Questions and Announcements
Topic: The keyboard on android is not removed after closing the input screen called in the main menu
Replies: 3
Views: 189

Re: The keyboard on android is not removed after closing the input screen called in the main menu

enaielei wrote: Sat Jul 22, 2023 6:34 pm Relevant to this? no?
viewtopic.php?f=8&t=66930
I tried adding DisableAllInputValues() to the action, it didn't help. As for Disable(), I'm not sure where and how to write it in the code...
by NoFanru
Sat Jul 22, 2023 4:52 am
Forum: Ren'Py Questions and Announcements
Topic: The keyboard on android is not removed after closing the input screen called in the main menu
Replies: 3
Views: 189

The keyboard on android is not removed after closing the input screen called in the main menu

I have my input screen, which is called in the main menu: screen inputtoo(): modal True frame at showframe(0.05): style_prefix "styleframe" xalign 0.5 padding (55, 65) if renpy.variant("touch"): yalign 0.05 else: yalign 0.5 vbox: xalign 0.5 yalign 0.5 text _("Введите новое и...
by NoFanru
Fri Jul 14, 2023 1:37 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] How to make the slider before the thumb have one color, and after another? And also how to increase the thumb?
Replies: 2
Views: 175

[SOLVED] How to make the slider before the thumb have one color, and after another? And also how to increase the thumb?

I want to do something like this, but I'm not sure how to implement it: https://i.ibb.co/drdrsyx/image.png I also tried to increase the size of the thumb image to get closer to what is in the picture. But when resized, it is not in the middle. What can be done about it? I would be grateful for any h...
by NoFanru
Fri Jun 23, 2023 6:09 am
Forum: Ren'Py Questions and Announcements
Topic: On android, after a while, all saves disappear
Replies: 1
Views: 227

On android, after a while, all saves disappear

People often write to me that on android after a while, when they just left the game and logged in the next day, all saves disappear (save slots, persistents variables, history of read dialogues). I conducted a survey on my audience, most often the problem occurs on android 12 and 13. I'm working on...
by NoFanru
Wed Jun 21, 2023 11:56 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Sprite disappears for a fraction of a second when doing an ATL transform
Replies: 5
Views: 208

Re: Sprite disappears for a fraction of a second when doing an ATL transform

Thank you very much for your answer! That sounds good, I'll check it out when I get a chance.
by NoFanru
Wed Jun 21, 2023 10:01 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Sprite disappears for a fraction of a second when doing an ATL transform
Replies: 5
Views: 208

Re: Sprite disappears for a fraction of a second when doing an ATL transform

You can try to make the intersection larger, e.g. on replaced: yoffset 0 linear 0.16 yoffset 9 alpha 0.0 on replace: alpha 0.0 pause 0.13 0.16 - 0.13 = 0.03 should be kinda sufficient for 30 FPS. (?) Thanks for the answer! This improved the situation, the problem began to appear much less, but it s...
by NoFanru
Wed Jun 21, 2023 3:54 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Sprite disappears for a fraction of a second when doing an ATL transform
Replies: 5
Views: 208

[SOLVED] Sprite disappears for a fraction of a second when doing an ATL transform

I want to make transitions between sprites more beautiful, for this I use transform: transform sd: on replaced: yoffset 0 linear 0.15 yoffset 9 alpha 0.0 on replace: alpha 0.0 pause 0.14 yoffset 9 alpha 1.0 linear 0.05 yoffset 12 ease 0.07 yoffset -5 ease 0.02 yoffset 0 In the code I write "sho...