Search found 215 matches

by RicharDann
Fri Oct 23, 2020 8:38 am
Forum: Ren'Py Questions and Announcements
Topic: Help with CTC positioning?
Replies: 1
Views: 66

Re: Help with CTC positioning?

In the Character definition, you are not using the "ctc" displayable you created with ATL properties, you're telling it to use directly "ctc.png" which is the image file you placed in your project's images folder. So you need to have it like this: define narrator = Character(None, ctc="ctc", ctc_pos...
by RicharDann
Thu Oct 22, 2020 8:49 am
Forum: Ren'Py Questions and Announcements
Topic: [solved] How to get the volume of an audio channel as a value to use in a screen
Replies: 3
Views: 120

Re: How to get the volume of an audio channel as a value to use in a screen

You can also use .format() interpolation to convert and display the value, like this:

Code: Select all

# Use str.format to interpolate the result of mus_vol * 100, with no decimal places this gives you the rounded percent 
text _( "{:.0f}%".format(mus_vol * 100) ) 
by RicharDann
Mon Oct 19, 2020 1:09 pm
Forum: Ren'Py Questions and Announcements
Topic: Conditional Menus?
Replies: 1
Views: 66

Re: Conditional Menus?

You just need to add an if statement after the choice. default beach_unlocked = True label start: menu: "Go to the park": "I guess I'll go to the park." "Go to the beach" if beach_unlocked: #will only appear if beach_unlocked is True "Let's go to the beach!" For a more detailed explanation and examp...
by RicharDann
Fri Oct 16, 2020 12:50 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Longer transition between screens
Replies: 2
Views: 185

Re: Longer transition between screens

There are a few configuration variables that control which transitions are used when changing screens or menus, you can check them out here . So in your options.rpy file in your project folder, you can find the config.intra_transition variable, and change the default dissolve transition for the one ...
by RicharDann
Tue Oct 13, 2020 8:39 am
Forum: Ren'Py Questions and Announcements
Topic: Adding a CTC animation to custom name
Replies: 4
Views: 184

Re: Adding a CTC animation to custom name

Characters should be defined with define statement. Also you may want to use a different variable for the character's name to avoid confusion with the character object. Try something like: define mc = Character("[mc_name]", ctc="ctc_animation") label start: $ mc_name = renpy.input("Your Name", lengt...
by RicharDann
Mon Oct 12, 2020 9:13 am
Forum: Ren'Py Questions and Announcements
Topic: Save/load slot hover color issue
Replies: 2
Views: 127

Re: Save/load slot hover color issue

If I'm not wrong, that purple line comes from the slot_hover_background.png image file located in the project folder, game/gui/button, that's generated when you create a project with that gui color. To change it you would just have to edit that image with a program like Gimp or Photoshop.
by RicharDann
Fri Oct 09, 2020 10:29 am
Forum: Ren'Py Questions and Announcements
Topic: Edgescroll speed
Replies: 2
Views: 137

Re: Edgescroll speed

Not sure if this is what you want, but you can try increasing the second value of the tuple, the scrolling rate in pixels per second, this would basically increase the scroll speed.

Code: Select all

viewport:
    edgescroll (400, 2000, speed_scroll)
by RicharDann
Wed Oct 07, 2020 8:30 am
Forum: Ren'Py Questions and Announcements
Topic: TypeError: 'tuple' object is not callable - inventory issue
Replies: 1
Views: 182

Re: TypeError: 'tuple' object is not callable - inventory issue

It seems you tried to call a tuple as if it was a function, but I don't see anything in the code you posted that could be a tuple. I don't see your definition of the inventory variable, but if you defined it like a tuple, maybe with default inventory = () , then it should be a list, default inventor...
by RicharDann
Thu Oct 01, 2020 12:20 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] images for imagebutton not showing up?
Replies: 2
Views: 204

Re: images for imagebutton not showing up?

I think the imagemap is being drawn over the buttons, because you placed it on the screen after the imagebutton declaration. Ren'py draws screen elements in the same order you code them, so in this case, the imagebuttons are drawn and placed on the game screen first, then the imagemap is drawn, but ...
by RicharDann
Mon Sep 28, 2020 9:51 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved-ish] Textbox position per character in new GUI?
Replies: 2
Views: 272

Re: Textbox position per character in new GUI?

Did you try this?

Code: Select all

define al = Character ("Alexis", color="#5499C7", window_background="alexis_textbox.png", window_xalign=.5)
If you need to change it for every character, in screens.rpy there is a style window statement defining the textbox position and image.
by RicharDann
Fri Sep 25, 2020 10:44 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Menu hides screens
Replies: 3
Views: 243

Re: Menu hides screens

You can use Show action instead of ShowMenu, if you want other screens to stop receiving input add modal True clause to your screen: screen my_game_menu(): modal True Just make sure your screen also has some way for the player to quit it once they want to continue the game, like adding a button or s...
by RicharDann
Wed Sep 23, 2020 8:26 am
Forum: Ren'Py Questions and Announcements
Topic: Particle system
Replies: 2
Views: 306

Re: Particle system

There's a Sprite class included in Ren'Py that can be used to create this but it requires solid python knowledge.
SnowBlossom is a premade class based on this that can be easily programmed to display sprites moving in any given direction.
by RicharDann
Fri Sep 11, 2020 11:10 am
Forum: Ren'Py Questions and Announcements
Topic: "Linear" auto save/load functionality
Replies: 2
Views: 269

Re: "Linear" auto save/load functionality

You could try setting a few configuration variables to achieve that. Something like the following code: # set autosave_slots to 1 so Ren'Py uses only one save file. define config.autosave_slots = 1 # set the autosave frequency per interaction. Interaction is any time the game waits for user input, l...
by RicharDann
Mon Sep 07, 2020 1:21 pm
Forum: Ren'Py Questions and Announcements
Topic: The animation doesn't work
Replies: 2
Views: 276

Re: The animation doesn't work

Try using yoffset instead of yalign for the linear statements.

Code: Select all

transform directorSalto:
    xalign 0.5 yalign 0.5
    linear 1.0 yoffset 100 #adjust the number of pixels to your needs
    linear 2.0 yoffset 0
    repeat
by RicharDann
Mon Aug 17, 2020 8:19 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Slow text skipping problem on screens
Replies: 0
Views: 287

[SOLVED] Slow text skipping problem on screens

I'm trying to create a custom dialogue screen for use with certain specific characters, without replacing the default say screen. Among other things, I want the text in my screen to be displayed according to the user's text speed preference settings, and I also need for the screen to be dismissed wh...