Search found 1030 matches

by m_from_space
Tue May 10, 2022 6:41 am
Forum: Ren'Py Questions and Announcements
Topic: Help with Calendar Dates, adding and subtracting
Replies: 2
Views: 2276

Re: Help with Calendar Dates, adding and subtracting

You can just use all the things Python is providing and then show it via renpy screens or dialogue or whatever you wanna do with it.

So just create a date object via:

Code: Select all

import datetime

dob = datetime.datetime(y, m, d)
https://www.w3schools.com/python/python_datetime.asp
by m_from_space
Tue May 10, 2022 6:34 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Centered text not centered
Replies: 10
Views: 577

Re: Centered text not centered

You should provide us with some code, so we can actually have an idea about why it happens. Is it not centered inside the say screen (the part where all dialogue is happening) or just on some other screen you created? Or as part of a choice menu? There are many possible ways this can happen.
by m_from_space
Tue May 10, 2022 6:27 am
Forum: Ren'Py Questions and Announcements
Topic: button to reset game(SOLVED)
Replies: 4
Views: 606

Re: button to reset game

You should be more precise about what you want. Of course you can create a button, that can delete persistent data. Or just any data. So what do you mean by "reset the game". A game is reset to default values whenever you start a new game. Every game uses its own set of data, but persisten...
by m_from_space
Mon May 09, 2022 4:21 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Preview of latest save
Replies: 3
Views: 450

Re: Preview of latest save

Well, if this is just about some chapter preview image, it's really simple. Whenever the game starts entering the new chapter, just save the current chapter inside a variable. In the main menu just read out this variable and show the preview image. You could even name the images according to the str...
by m_from_space
Thu May 05, 2022 2:39 pm
Forum: Ren'Py Questions and Announcements
Topic: Ren'py doesn't save a variable as expected. [fixed in 7.5/8.0]
Replies: 3
Views: 472

Re: Ren'py doesn't save a variable as expected.

you loading from the first line of the game so of course it's going to change every time you load from that save it's because you don't have nothing above that line but only a if statement you will need to use $ renpy.retain_after_load() it might work but it might not cause it's the first line of t...
by m_from_space
Thu May 05, 2022 10:02 am
Forum: Ren'Py Questions and Announcements
Topic: Ren'py doesn't save a variable as expected. [fixed in 7.5/8.0]
Replies: 3
Views: 472

Ren'py doesn't save a variable as expected. [fixed in 7.5/8.0]

Okay, I suddenly feel like a noob again. I don't understand what Ren'py is doing here. Save the game at the moment the line says and then reload. The number will be different every time. Why isn't it saved? I understand, that Ren'py is repeating the python statement, but why is "number" No...
by m_from_space
Mon Apr 11, 2022 5:24 am
Forum: Ren'Py Questions and Announcements
Topic: X-ray effect around cursor?
Replies: 3
Views: 963

Re: X-ray effect around cursor?

Hey, I just created a user defined Displayable, that acts as an x-ray device. It follows the mouse cursor and also allows an overlay (like a device). The Displayable refers to a frame when applying the x-ray effect, so you have to position the target image (like a person with clothes) at the same po...
by m_from_space
Wed Jan 26, 2022 7:14 am
Forum: Ren'Py Questions and Announcements
Topic: [solved / fixed] Drag & Drop Overlap and Snap Function
Replies: 1
Views: 379

Re: [solved / fixed] Drag & Drop Overlap and Snap Function

I solved this problem differently, so no need to answer here. :)
by m_from_space
Tue Jan 25, 2022 11:13 am
Forum: Ren'Py Questions and Announcements
Topic: switch expression; no image tag associated with the speaking character?
Replies: 2
Views: 412

Re: switch expression; no image tag associated with the speaking character?

Hey, make sure you created a character, that is actually linked with the image tag you are using, e.g. define z = Character("Zephyr", ... , image="zeph") image zeph normal = "zephyr_normal.png" image zeph sad = "zephyr_sad.png" label start: show zeph normal z ...
by m_from_space
Tue Jan 25, 2022 7:46 am
Forum: Ren'Py Questions and Announcements
Topic: How to call function everytime the say screen is shown?
Replies: 2
Views: 421

Re: How to call function everytime the say screen is shown?

I tried something out, what you could do is the following, but there might be cases where it's not working properly, especially if you use "extend" stuff. So far, for every line of text your character is speaking, the function is only called once and the id is increasing. You could keep tr...
by m_from_space
Tue Jan 25, 2022 7:24 am
Forum: Ren'Py Questions and Announcements
Topic: How to call function everytime the say screen is shown?
Replies: 2
Views: 421

Re: How to call function everytime the say screen is shown?

I don't quite get your question. Inside a label the "add_message()" function will only be called once when you call it. What exactly is your goal here regarding the ID's and the function? If it's about setting the variable and calling the function without having the player to click first, ...
by m_from_space
Tue Jan 25, 2022 7:19 am
Forum: Ren'Py Questions and Announcements
Topic: How do you stop music from looping, without causing rollback to stop playing music, & ensure music plays after loading?
Replies: 1
Views: 368

Re: How do you stop music from looping, without causing rollback to stop playing music, & ensure music plays after loadi

I don't know about the rollback, but you could work around the loading problem by having a global variable keeping track of the current music. default background_music = "None" label after_load: if background_music != "None": play music background_music fadein 1.0 noloop return l...
by m_from_space
Tue Jan 25, 2022 6:56 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Fade out main menu?
Replies: 18
Views: 1004

Re: Fade out main menu?

You actually don't have to do much for it. Something like this should suffice:

Code: Select all

label start:
	stop music fadeout 1.0
	scene black
	with Dissolve(1.0)
	...
by m_from_space
Tue Jan 25, 2022 4:04 am
Forum: Ren'Py Questions and Announcements
Topic: [solved / fixed] Drag & Drop Overlap and Snap Function
Replies: 1
Views: 379

[solved / fixed] Drag & Drop Overlap and Snap Function

Hello, I played around with the Drag & Drop feature of Ren'py. https://www.renpy.org/dev-doc/html/drag_drop.html Consider some kind of basketball situation with a (draggable) Drag called "drag_ball" that you can drag around, and there is also a (droppable) Drag called "drop_net&qu...
by m_from_space
Sat May 08, 2021 9:06 am
Forum: Ren'Py Questions and Announcements
Topic: deleting all persistent data except the persistent on the savegame
Replies: 9
Views: 1303

Re: deleting all persistent data except the persistent on the savegame

yeah ur right, thats it but what about my unlocked chapter and secret routes or label and my achievement? i use persistent on that . it has any other way to make that except persistent? Maybe somebody should just tell you that renpy automatically saves every variable that is defined and changed wit...