Search found 52 matches

by hapciupalit
Thu Jul 09, 2020 10:07 am
Forum: Ren'Py Questions and Announcements
Topic: Lag on screens
Replies: 3
Views: 278

Re: Lag on screens

50-15-10kb matter only when image is on disk. Once loaded it will use at least 8mb of memory, even if image is completely transparent. I suggest cropping transparent parts and placing at exact positions. This often done either by photoshop script or some custom tool/script. As for why previous game...
by hapciupalit
Thu Jul 09, 2020 9:13 am
Forum: Ren'Py Questions and Announcements
Topic: Lag on screens
Replies: 3
Views: 278

Lag on screens

Hi there guys, I'm having problems with the screens. I'm creating a point and click game where you need to click some doors and stuffs to jump to another scene, however as soon as I have 2/3 imagebuttons it's lagging very much. All the images I use in the imagebutton are 1920x1080 to be sure that th...
by hapciupalit
Sat May 09, 2020 11:24 am
Forum: Ren'Py Questions and Announcements
Topic: understanding show?
Replies: 4
Views: 301

Re: understanding show?

You might want to use layered images for that. See this doc and an article about it... https://www.renpy.org/doc/html/layeredimage.html https://patreon.renpy.org/layeredimage-conversion.html layered images can do something like... show character clothing emotion This is indeed something I've been l...
by hapciupalit
Sat May 09, 2020 9:07 am
Forum: Ren'Py Questions and Announcements
Topic: understanding show?
Replies: 4
Views: 301

Re: understanding show?

Are pijama/happy and swimsuit/happy two different images? If not, you don't need such hierarchy. Well yes, beside the fact that the character has different clothes it might have also different position. This is why I need this kind of approach: Each character has a schedule. So if Alex wants to tal...
by hapciupalit
Fri May 08, 2020 1:30 pm
Forum: Ren'Py Questions and Announcements
Topic: understanding show?
Replies: 4
Views: 301

understanding show?

Hi there. I'm trying to create a layered image type of conversation where I have two characters each one of them with a few emotions. For the sake of this post I'll say only two emotions. One character is Eileen and the other one is Alex. Both of them have 2 emotions but with different clothes. I wa...
by hapciupalit
Fri Mar 06, 2020 5:45 am
Forum: Ren'Py Questions and Announcements
Topic: renpy.return?
Replies: 2
Views: 267

renpy.return?

Hello guys, I have simplified my problem in this example, but what I need right now is a way to do the Return() in a python method. label test: "something goes here" call test2() "something else goes here" label test2: call screen test_screen() screen test_screen(): key "K_UP" action Function(testFu...
by hapciupalit
Mon Mar 02, 2020 3:54 am
Forum: Ren'Py Questions and Announcements
Topic: Define, Default, Classes, Lists
Replies: 2
Views: 328

Re: Define, Default, Classes, Lists

you can't use a 'default' in a 'define'. if I'm not mistaking, 'defined' variables are assigned when the game is launched and 'default' variables are assigned when a new game is started. one simply comes before the other. you can re assign your values right after the start label if you want them to...
by hapciupalit
Sun Mar 01, 2020 4:41 am
Forum: Ren'Py Questions and Announcements
Topic: Different random after scroll back
Replies: 12
Views: 777

Re: Different random after scroll back

Assuming the "cheat" is changing a decision made prior to the random call, another option (depending on how linear the game is) could be to go back to RenPy's rollback-compatible random and combine it with fixed rollback[1], which would allow rollback but not changing the decision/bet already made....
by hapciupalit
Thu Feb 27, 2020 2:29 am
Forum: Ren'Py Questions and Announcements
Topic: Different random after scroll back
Replies: 12
Views: 777

Re: Different random after scroll back

As I now think about it more carefully, disabling the ability to save and load the game is not a very user-friendly thing to do. It is technically possible to make the save and load buttons insensitive (unclickable) with some boolean variables for example, but many will find it annoying. A clever p...
by hapciupalit
Wed Feb 26, 2020 11:23 am
Forum: Ren'Py Questions and Announcements
Topic: Define, Default, Classes, Lists
Replies: 2
Views: 328

Define, Default, Classes, Lists

In my head it's a mess. I mean, I know a little bit of python but this thing is way over my head. Here is the whole story. There is a screen with a background which can be changed. You can unlock new backgorunds either by playing the story or by introducing some codes. MobileBackground is a class th...
by hapciupalit
Wed Feb 26, 2020 5:43 am
Forum: Ren'Py Questions and Announcements
Topic: Different random after scroll back
Replies: 12
Views: 777

Re: Different random after scroll back

Alex makes a very good point. Another option could be to disable rollback, saving and loading, but ONLY during roulette or random element sections, and re-enable them once the casino label or screen is exited. If you do this make sure to warn the players beforehand so they know exactly how it works...
by hapciupalit
Wed Feb 26, 2020 5:41 am
Forum: Ren'Py Questions and Announcements
Topic: Different random after scroll back
Replies: 12
Views: 777

Re: Different random after scroll back

By the way, you can't stop players from er... kind of cheating. If your random number would be different after rollback, then player will be able to rollback until (s)he wins. And if you'll block the rollback function, player could save game before making stake and restore the game in case of lose....
by hapciupalit
Tue Feb 25, 2020 9:41 am
Forum: Ren'Py Questions and Announcements
Topic: Different random after scroll back
Replies: 12
Views: 777

Different random after scroll back

I'm building a roulette and I'm trying to generate a random number. My problem right now is that if I scroll back then I know what number is going to be. This is my code right now. Is there a way to generate different number even if I scroll back, cuz the other solution would be to stop the scroll, ...
by hapciupalit
Thu Feb 20, 2020 2:39 am
Forum: Ren'Py Questions and Announcements
Topic: Label starts in the middle
Replies: 5
Views: 316

Re: Label starts in the middle

Thank you both. I'll see which is the simplest solution for me to write the text with.
by hapciupalit
Wed Feb 19, 2020 3:17 pm
Forum: Ren'Py Questions and Announcements
Topic: Label starts in the middle
Replies: 5
Views: 316

Re: Label starts in the middle

Is it possible to create a way for the label to skip seen parts of a label? I'm doing a chat system and you can exit anytime you want and open it the same way. My problem is that everytime I open the chat label it starts from the beginning. I'm thinking on adding some id's to each of the lines or s...