Search found 32 matches

by Angelo Seraphim
Sat Sep 03, 2022 3:07 am
Forum: Ren'Py Questions and Announcements
Topic: Using a function with text
Replies: 4
Views: 247

Re: Using a function with text

Hm... Maybe try something like this:

Code: Select all

init python:
    def test_func():
        return "something"
        ## However your function or class is set up.
... And then use the .format() method.

Code: Select all

 text "{}".format(Ava_stats.affeection())
See if that works for you.
by Angelo Seraphim
Sun Jun 27, 2021 7:13 am
Forum: Ren'Py Cookbook
Topic: (Persistent) Ren'Py Achievements w/ Download link
Replies: 7
Views: 3289

Re: Using Ren'Py Achievements and making them persist

In the class "__init__" method, you may want to provide a "fit" property to the "Transform", as the default ("fill") will mess with aspect ratios. "contain" avoids messing with aspect ratio, will use 100 for the big dimension and keep the other one the corresponding ratio (a 200x150 image will be t...
by Angelo Seraphim
Tue Mar 09, 2021 3:16 pm
Forum: Ren'Py Cookbook
Topic: Betatester mode
Replies: 2
Views: 1667

Re: Betatester mode

This is fantastic! Will definitely utilise this in my game. Great job!
by Angelo Seraphim
Mon Mar 01, 2021 4:26 pm
Forum: Ren'Py Cookbook
Topic: (Persistent) Ren'Py Achievements w/ Download link
Replies: 7
Views: 3289

Re: Using Ren'Py Achievements and making them persist

UPDATE 4th MARCH 2021 I've done a few more testing. There are times when the achievement is rewarded but doesn't show up in the achievement screen. The changes; For the __eq__ you can do; def __eq__(self, value): return all((self.name == value.name, self.message == value.message)) This seems to wor...
by Angelo Seraphim
Fri Feb 12, 2021 5:25 pm
Forum: Ren'Py Cookbook
Topic: (Persistent) Ren'Py Achievements w/ Download link
Replies: 7
Views: 3289

Re: Using Ren'Py Achievements and making them persist

UPDATE 12th FEB 2021 Okay, so I've figured out the problem. So, in the screen that displays the achievements, instead of: ## Granted trophies for t in Trophy.Trophies: ## Change this line... if achievement.has(t.name): ... ... do: ## Granted trophies for t in persistent.my_victories: ## ... to this...
by Angelo Seraphim
Fri Feb 12, 2021 12:00 pm
Forum: Ren'Py Cookbook
Topic: (Persistent) Ren'Py Achievements w/ Download link
Replies: 7
Views: 3289

Re: Using Ren'Py Achievements and making them persist

Thank you! :D From: https://www.youtube.com/watch?v=j89RDm0nNAs For all the trophy/achievement hunters. This took me a long time to figure out, but I'm happy to have got it working. If anybody is interested in learning how to create a persistent list I will create a simple walkthrough tutorial on t...
by Angelo Seraphim
Mon Feb 08, 2021 1:39 pm
Forum: Ren'Py Cookbook
Topic: (Persistent) Ren'Py Achievements w/ Download link
Replies: 7
Views: 3289

(Persistent) Ren'Py Achievements w/ Download link

Latest update (5 / JULY / 21) Hello, everyone! I've decided to make an achievement system using RenPy Achievements. :!: UPDATE (I figured it'd be easier to create a downloadable file including a short tutorial and the code.) :!: Here's a quick video of what it looks like in my game so you can get a...
by Angelo Seraphim
Mon Feb 08, 2021 8:51 am
Forum: Ren'Py Questions and Announcements
Topic: Character Moving Forward while Talking
Replies: 2
Views: 668

Re: Character Moving Forward while Talking

Hi @GoingGoingKeith, Here's what I use in my game: init python: def stacey_callback(event, interact=True, **kwargs): if not interact: return ## Voice bleeps if event == "show_done": renpy.sound.play("audio/voice/stacey_bip.wav", channel='voice_bleeps', fadein=0.1) elif event == "slow_done": renpy.so...
by Angelo Seraphim
Thu Jan 21, 2021 9:58 am
Forum: Ren'Py Questions and Announcements
Topic: Possible to get a list of images currently shown on screen?
Replies: 4
Views: 765

Re: Possible to get a list of images currently shown on screen?

Hi @Woetoo I think this only might be what you are looking for - https://www.renpy.org/doc/html/displaying_images.html?highlight=images#renpy.list_images It states; Returns a list of images that have been added to Ren'Py, as a list of strings with spaces between the name components. I believe on tha...
by Angelo Seraphim
Wed Jan 20, 2021 5:58 am
Forum: Ren'Py Questions and Announcements
Topic: Renpy.music playing out of nowhere!
Replies: 4
Views: 664

Re: Renpy.music playing out of nowhere!

screen skip_indicator (): on 'show' action Play ('music', 'faster.mp3') on 'hide' action Play ('music', 'normal.mp3') screen galereya(): python: renpy.music.play("menu.mp3", fadeout=10.0, fadein=15.0) frame Uh... not sure if this is relevant. ------------------------------------------- @KikkomanSoy...
by Angelo Seraphim
Wed Jul 22, 2020 2:24 pm
Forum: Ren'Py Questions and Announcements
Topic: Help Needed: Making a profanity filter
Replies: 1
Views: 268

Help Needed: Making a profanity filter

Hi, all! I hope everyone is doing well. So I've been working on creating a code that can filter/censor bad words on the fly. Below is my pseudo code. :mrgreen: So I was kind of messing around with this code that is made to censor bad words and it seems to work as intended (outside of RenPy). But now...
by Angelo Seraphim
Wed Feb 12, 2020 12:42 pm
Forum: Ren'Py Questions and Announcements
Topic: Create an animation with time parameters
Replies: 6
Views: 821

Re: Create an animation with time parameters

Hi everyone, I'm a newbie to Renpy and I'm practicing with some codes found in this wise forum. I would like you to give me an idea like this convert to a custom function: image Run 1: "images/001.jpg" pause .15 "images/002.jpg" pause .15 "images/003.jpg" pause .15 repeat def Run (int charID): # sh...
by Angelo Seraphim
Wed Jan 29, 2020 5:24 am
Forum: Ren'Py Questions and Announcements
Topic: Conditional imagebutton [SOLVED]
Replies: 5
Views: 467

Re: Conditional imagebutton

Should be:

Code: Select all

action If(time <= 3, SetVariable("time", time + 1), Jump("sallybed"))
time <= 3 without the quotes. (That's probably with it's running "true" all the time.)

So just a quick summary;
time <= 3 :: time has to be less than or equal to 3 to be true, otherwise it will be false.
by Angelo Seraphim
Tue Jan 28, 2020 5:20 pm
Forum: Ren'Py Questions and Announcements
Topic: Imagemap using interpolation
Replies: 2
Views: 329

Re: Imagemap using interpolation

Do you have a "gui/overworld_..._ground.png" image file?
If not you probably would need it since you are using the auto property.
This may help: https://www.renpy.org/doc/html/screens. ... s#imagemap

But to answer your question, the text interpolation should work.
by Angelo Seraphim
Fri Jan 24, 2020 6:15 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Variable scope between platforms
Replies: 2
Views: 441

Re: Variable scope between platforms

Consider using " default " when declaring variables and not " $ " . init python: renpy.music.register_channel("music","sfx",False) ## I'm assuming these were supposed to go here (?) Calendar() Clock() default i = 0 This should solve your problem. Also , if the variable is dynamic consider using " de...