Search found 30 matches

by pyPat
Sat Nov 02, 2019 5:09 am
Forum: Ren'Py Questions and Announcements
Topic: Create a graph in-game to track stat changes
Replies: 3
Views: 963

Re: Create a graph in-game to track stat changes

Hello, There is a python library : matplotlib , that allows you to make graphs. It's a bit like the pestle hammer to crush a fly (French formula to say that the tool are clearly oversized compared to the objective) but I only know this library to do that. The advantage is that it is well documented....
by pyPat
Fri Nov 01, 2019 6:52 am
Forum: Ren'Py Questions and Announcements
Topic: An question about renpy translate,
Replies: 2
Views: 600

Re: An question about renpy translate,

And i want to know what away are good for made an type of FAQ in game like this image Salut :wink: A newbie' s notice: a screen with textbuttons for the left, these textbuttons calling labels containing a screen for the right part with other textbutton for questions triggering calls with dialog res...
by pyPat
Thu Oct 31, 2019 6:20 am
Forum: Ren'Py Questions and Announcements
Topic: How do I remove a list of items from another list?
Replies: 2
Views: 588

Re: How do I remove a list of items from another list?

Or python: listA = [1,2,3,4,5] listB = [2,4] listA = [i for i in listA if i not in listB] listA is then equal to [1,3,5] Avoids problems if the order of the elements is different in the two lists: if listB = [4,2] and not [2,4] With the loop written by Per K Grok with listB = [4,2] we have the follo...
by pyPat
Sun Oct 27, 2019 9:15 am
Forum: Ren'Py Questions and Announcements
Topic: Making Imagebuttons disappear upon clicking them
Replies: 16
Views: 1759

Re: Making Imagebuttons disappear upon clicking them

Thanks Plulovi and Alex for this post, it corresponds to a problem that I hadn't really solved: animating a button and play sound when and only when I click on it. In my case, the button wasn't supposed to disappear. (A padlock that was supposed to move and squeak when you click it. But unfortunatel...
by pyPat
Mon Oct 21, 2019 7:11 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Music Continue
Replies: 20
Views: 1683

Re: Music Continue

If "first2" appears that a pause between play movie and scene first would allow "first" to be displayed ?

Why a call, and not a jump label main_menu? Maybe it would work?
by pyPat
Mon Oct 21, 2019 6:36 am
Forum: Ren'Py Questions and Announcements
Topic: Absolutes for Tags?
Replies: 1
Views: 452

Re: Absolutes for Tags?

I don't know if I understood your request correctly. But in order that an image is always positioned in the same way, we can write: image jparle_tc: Solid('505a', xysize=(320, 240)), truecenter image pierre_tc: "images/pierre2 mad side.png", truecenter image pierre = "images/pierre2 m...
by pyPat
Sat Oct 19, 2019 8:09 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Moving various titles to the middle
Replies: 5
Views: 891

Re: [Solved] Moving various titles to the middle

isobellesophia wrote: Fri Oct 18, 2019 10:24 am

Code: Select all

"Here" xalign 0.5 yalign 0.0
I don't know why, but I prefer this solution. :P
Thank you all!
by pyPat
Thu Oct 17, 2019 11:50 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Moving various titles to the middle
Replies: 5
Views: 891

Re: [Solved] Moving various titles to the middle

dellcartoons wrote: Tue Oct 15, 2019 6:54 am EDIT: Never mind. I got it
It might interest readers that you give your solution! :)
by pyPat
Thu Oct 17, 2019 11:32 am
Forum: Ren'Py Questions and Announcements
Topic: How to name a screen by the content of a variable? [SOLVED]
Replies: 16
Views: 1773

Re: How to name a screen by the content of a variable?

Alex wrote: Tue Oct 15, 2019 6:23 am you can call it paranoia...))
it's true that your avatar, when he frowned, looked paranoid. :lol:
I tested it without the repeat it works!
thank you again.
by pyPat
Tue Oct 15, 2019 5:54 am
Forum: Ren'Py Questions and Announcements
Topic: How to name a screen by the content of a variable? [SOLVED]
Replies: 16
Views: 1773

Re: How to name a screen by the content of a variable?

Thank you Alex, great example! It took me a little while to understand all the code but it's okay. Only one question: why repeat False in timer 2.0 action Hide(tag) repeat False This code has no reason to repeat even without repeat False ??? I love this kind of improbable code, just for the beauty o...
by pyPat
Mon Oct 14, 2019 9:09 am
Forum: Ren'Py Questions and Announcements
Topic: How to name a screen by the content of a variable? [SOLVED]
Replies: 16
Views: 1773

Re: How to name a screen by the content of a variable?

YES! Great, it works perfectly. The use of _tag is the key. I saw the use of tag in the doc on: renpy.hide_screen(tag, layer=None) and renpy.define_screen(name, function, modal="False", zorder="0", tag=None, variant=None) Actually he talks about _tag, usable with the solution pro...
by pyPat
Sat Oct 12, 2019 6:27 pm
Forum: Ren'Py Questions and Announcements
Topic: How to name a screen by the content of a variable? [SOLVED]
Replies: 16
Views: 1773

Re: How to name a screen by the content of a variable?

Lazy, not really, I often see you answer on the forum where you solve a lot of problems. ren'py it's a real tour de force (challenge) to have written this with python 2.x and pygame, it's quite fluid. For the documentation I think my nullity in English and the poverty of google trad counts a lot! Th...
by pyPat
Sat Oct 12, 2019 5:48 am
Forum: Ren'Py Questions and Announcements
Topic: How to name a screen by the content of a variable? [SOLVED]
Replies: 16
Views: 1773

Re: How to name a screen by the content of a variable?

they're finicky, slow and as far as I know, there's no documentation on them. OK, ok :cry: I see, everything I love... Especially the lack of doc, it's the most horrible thing I know. I'm not opening this Pandora's box! Thank you for the feedback! By the way, how do you like the ren'py doc? Persona...
by pyPat
Fri Oct 11, 2019 2:46 pm
Forum: Ren'Py Questions and Announcements
Topic: How to name a screen by the content of a variable? [SOLVED]
Replies: 16
Views: 1773

Re: How to name a screen by the content of a variable?

Maybe in python with something like: dicScreen = dict(); var = 'screen'+i; dicScreen[var] = 'nameScreen'; if there are functions or methods equivalent to screen name, show screen name and hide screen name in python. To be explored renpy.define_screen(name, function, modal="False", zorder=&...
by pyPat
Fri Oct 11, 2019 2:02 pm
Forum: Ren'Py Questions and Announcements
Topic: How to name a screen by the content of a variable? [SOLVED]
Replies: 16
Views: 1773

Re: How to name a screen by the content of a variable?

yes this would be necessary to create a large number of screens on the fly with a call and put the generic code in a block. For me, that was the goal. Yes when we do not know the number of screens that will have to be called in a loop or under a condition and be able to manage them individually. And...