Search found 14 matches
- 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: 727
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...
- 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: 727
[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...
- Sun Jul 30, 2023 1:22 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: 204
Re: Is it possible to make a parallax effect that depends on the tilt of the android mobile device?
Oh thanks for the reply_ticlock_ wrote: ↑Sun Jul 30, 2023 12:07 am Not sure if there is a ready-to-use solution. Check the following:
viewtopic.php?f=8&t=65275&p=560551&hili ... er#p555070
https://github.com/renpy/renpy/issues/3615
- 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: 204
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!
I can't find anything about this on the internet, any help would be greatly appreciated!
- 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: 4901
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!
I would be grateful for any help!
- 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: 176
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...
- 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: 194
Re: The keyboard on android is not removed after closing the input screen called in the main menu
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...
- 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: 194
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 _("Введите новое и...
- Fri Jul 14, 2023 5:33 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: 177
Re: How to make the slider before the thumb have one color, and after another? And also how to increase the thumb?
Thanks for the answer, it helped!
- 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: 177
[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...
- 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: 262
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...
- 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: 220
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.
- 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: 220
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...
- 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: 220
[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...