Search found 461 matches

by jeffster
Sat May 25, 2024 3:03 pm
Forum: Ren'Py Questions and Announcements
Topic: What's the most efficient way to store variables?
Replies: 19
Views: 577

Re: What's the most efficient way to store variables?

Ah, I understand that. But what I'm saying is that a good language designer could make ANY language compile to exactly the same machine language. Somebody could, for example, write a version of BASIC which first converted the sourcecode into the equivalent C code and then compiled that. Since there...
by jeffster
Fri May 24, 2024 4:58 pm
Forum: Ren'Py Questions and Announcements
Topic: Animating text box and name box in say screen
Replies: 2
Views: 182

Re: Animating text box and name box in say screen

PS
Marvin0509 wrote: Fri May 24, 2024 2:09 pm Hello everyone!
I think similar topics were discussed, and here's some info:
viewtopic.php?t=41568
by jeffster
Fri May 24, 2024 4:42 pm
Forum: Ren'Py Questions and Announcements
Topic: Animating text box and name box in say screen
Replies: 2
Views: 182

Re: Animating text box and name box in say screen

Try to perhaps experiment with 'replace', 'replaced', 'update': https://renpy.org/doc/html/atl.html#external-events image textbox_dx: xalign 0.5 yalign 1.0 "gui/textbox/textbox_idle00.png" block: pause 1/60 "gui/textbox/textbox_idle01.png" ... "gui/textbox/textbox_idle59.png...
by jeffster
Fri May 24, 2024 12:46 pm
Forum: Ren'Py Questions and Announcements
Topic: Centering multiline text
Replies: 1
Views: 169

Re: Centering multiline text

There's property "text_align".

Code: Select all

style say_dialogue:
    text_align 0.5
by jeffster
Fri May 24, 2024 12:35 pm
Forum: Ren'Py Questions and Announcements
Topic: Renpy how to start making minigame
Replies: 7
Views: 343

Re: Renpy how to start making minigame

I couldn't manage to piece together something with the code you offered, i couldn't really make out the gaps but i did find a tutorial here: https://youtu.be/ZZsCUROxKQk It's not what i wanted to do at all, but by following along, and cutting down on the feature i didn't want, i managed to make the...
by jeffster
Fri May 24, 2024 11:28 am
Forum: Ren'Py Questions and Announcements
Topic: What's the most efficient way to store variables?
Replies: 19
Views: 577

Re: What's the most efficient way to store variables?

This is why I've never understood why people choose to code in things like C which are almost impossible to understand without a degree in computer science and a manual the size of War and Peace, when there's no reason code written in any other simpler language couldn't compile down to exactly the ...
by jeffster
Fri May 24, 2024 8:52 am
Forum: Ren'Py Cookbook
Topic: Point and Click Sample Project
Replies: 15
Views: 27724

Re: Point and Click Sample Project

It's been a few years.... but I was playing this game, which was a great example to explore the code! However, it crashes when I try to put the wood in the fireplace... Is there a fixed version? The exception text: I'm sorry, but an uncaught exception occurred. While running game code: File "g...
by jeffster
Fri May 24, 2024 8:28 am
Forum: Ren'Py Questions and Announcements
Topic: Inventory Help
Replies: 4
Views: 313

Re: Inventory Help

For example, the player needs to use the book with the correct bookcase at a library (a third screen). So, I would need to set the have_book variable go to false again, once the player has selected the book AND the bookcase imagebutton. I would also need to have a way to show that the book is selec...
by jeffster
Fri May 24, 2024 6:04 am
Forum: Ren'Py Questions and Announcements
Topic: Inventory Help
Replies: 4
Views: 313

Re: Inventory Help

Above, you just say "#add book to inventory" It depends on your implementation of inventory. They were discussed here often, and there are various ready-to-use inventory systems in the Ren'Py Cookbook, all kinds of types and styles: https://lemmasoft.renai.us/forums/viewforum.php?f=51 Her...
by jeffster
Thu May 23, 2024 12:40 pm
Forum: Ren'Py Questions and Announcements
Topic: Return viewport to previous position
Replies: 6
Views: 317

Re: Return viewport to previous position

I'm going to come back to this, because it's making my head bleed. Incidentally, I've just noticed that yinitial doesn't even seem to work in the example above (xinitial was a typo, by the way). Even if I hardcode in "yinitial 1000" or "yinitial 0.5", the viewport still starts a...
by jeffster
Thu May 23, 2024 12:19 pm
Forum: Ren'Py Questions and Announcements
Topic: Outlining only certain text in dialog
Replies: 7
Views: 310

Re: Outlining only certain text in dialog

Be aware that adding transparent outline to the text will increase letter spacing. If you do not want that, then giorgi1111 has the link that can help you (second to last message in that thread) Cool. But IMHO creating an image to show a word is like killing a mosquito with a bazooka. Anyone anal a...
by jeffster
Thu May 23, 2024 10:18 am
Forum: Ren'Py Questions and Announcements
Topic: What's the most efficient way to store variables?
Replies: 19
Views: 577

Re: What's the most efficient way to store variables?

PS. For some weird reason, you might want to create a separate namespace for all choice-related variables. I'm not sure what is the properest way to set namespaces in Ren'Py, but this should work (for Python 3, i.e. Ren'Py 8.): init python: from types import SimpleNamespace c = SimpleNamespace() # T...
by jeffster
Thu May 23, 2024 9:39 am
Forum: Ren'Py Questions and Announcements
Topic: What's the most efficient way to store variables?
Replies: 19
Views: 577

Re: What's the most efficient way to store variables?

Imagine I have a Yes/No question (1) and I want the game to remember that answer, but then I have another Yes/No question (2) and then another one (3) and so on, and I want to save those answers as well. Eventually the game has 100 Yes/No questions, each of them stored individualy, so I'd end with ...
by jeffster
Thu May 23, 2024 7:47 am
Forum: Ren'Py Questions and Announcements
Topic: Renpy how to start making minigame
Replies: 7
Views: 343

Re: Renpy how to start making minigame

There are tons of minigames presented and discussed in Ren'Py Cookbook: https://lemmasoft.renai.us/forums/viewforum.php?f=51 And generally search the whole forum with keywords like minigame, rhythm etc. this give out this error OSError: Could not open 'assets/DinoWallpaper.png'. b"Couldn't open...
by jeffster
Wed May 22, 2024 8:11 pm
Forum: Ren'Py Questions and Announcements
Topic: Return viewport to previous position
Replies: 6
Views: 317

Re: Return viewport to previous position

When I run this, it just says that a NoneType object has no yadjustment value. Help! TIA. def getxcardgallerypos(): tempvar = renpy.get_widget('CardGallery', 'gallery2') cardypos = tempvar.yadjustment.value screen CardGallery(): ... frame: xpos 250 ypos 0 background None side ("r"): area ...