Search found 239 matches

by RicharDann
Fri Nov 06, 2020 3:34 pm
Forum: Ren'Py Questions and Announcements
Topic: When implementing text bleeps by using character callbacks, is there a way to use voice instead of sound or music?
Replies: 6
Views: 228

Re: When implementing text bleeps by using character callbacks, is there a way to use voice instead of sound or music?

I'm unable to test this out right now, but you could try creating a new channel. init python: # add this line before beepy_voice function renpy.music.register_channel(name='beeps', mixer='voice') And in the function use renpy.sound.play("beeps.ogg", channel='beeps') https://www.renpy.org/doc/html/au...
by RicharDann
Fri Nov 06, 2020 9:08 am
Forum: Ren'Py Questions and Announcements
Topic: Changing quick menu textbuttons to imagebuttons
Replies: 2
Views: 202

Re: Changing quick menu textbuttons to imagebuttons

You need to change the auto property to idle in every button.

Code: Select all

imagebutton idle "gui/icons/Back.png" action Rollback()
The error happened because Ren'Py expects that if you use auto, you must format the string and the images as explained here.
by RicharDann
Thu Nov 05, 2020 2:51 pm
Forum: Ren'Py Cookbook
Topic: Kinetic Text Tags (Moving, waving, bouncing, shaking, replacement, style changes and more!)
Replies: 9
Views: 706

Re: Kinetic Text Tags (Moving, waving, bouncing, shaking, replacement, style changes and more!)

Just the other day I was checking out a game that uses a system similar to this and I thought it would be cool if this could be made in Ren'Py. I am impressed at how well it can be implemented, it adds a lot of flavor and personality to dialogue. I'm not too familiar with the way text tags are handl...
by RicharDann
Wed Nov 04, 2020 10:35 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Classes and objects inherited by a screen
Replies: 2
Views: 231

Re: Classes and objects inherited by a screen

You can use any kind of python object inside screens just like you normally would in regular script. # An object of the Character class define e = Character("Eileen") # You can access the object and its properties directly screen test(): text e.name # You can also pass objects as arguments to the sc...
by RicharDann
Thu Oct 29, 2020 12:42 pm
Forum: Ren'Py Questions and Announcements
Topic: Ren'Py 7.4.0 Prereleased
Replies: 29
Views: 2795

Re: Ren'Py 7.4.0 Prereleased

I'm having some trouble running old projects in the prerelease. The Question and Tutorial game that come with 7.4.0 run just fine, as well as newly created projects, but every one of my 7.3.5 projects throws this error. Thu Oct 29 12:29:53 2020 Windows-7-6.1.7600-SP0 Ren'Py 7.4.0.939 renpy/dump.py:2...
by RicharDann
Thu Oct 29, 2020 8:18 am
Forum: Ren'Py Questions and Announcements
Topic: Ren'Py 7.4.0 Prereleased
Replies: 29
Views: 2795

Re: Ren'Py 7.4.0 Prereleased

Wow that's a lot of great new features and improvements, it sure has been worth the wait. This opens up so many possibilities, can't wait to try it out, to PyTom and all the dev team thank you so much for your hard work and dedication! You're amazing!
by RicharDann
Wed Oct 28, 2020 9:12 am
Forum: Ren'Py Questions and Announcements
Topic: Hide Dialog Window
Replies: 3
Views: 233

Re: Hide Dialog Window

Not the most elegant solution but you could try using a ConditionSwitch to temporarily hide the background. # this variable will control wether the window background is shown or not default show_window = True # in style window background ConditionSwitch('not show_window', Null(), 'True', Image("gui/...
by RicharDann
Wed Oct 28, 2020 8:33 am
Forum: Ren'Py Questions and Announcements
Topic: Looking for help and knowledge about customizing and editing choice menus [Updated]
Replies: 4
Views: 256

Re: Looking for help and knowledge about customizing and editing choice menus [Updated]

Yes, you can alter any style property (like text and color) for each screen element (frames, buttons, text) by adding those properties as part of the code block where you define them. You can also define styles if you want to reuse properties for many different screens without repeating code, but no...
by RicharDann
Tue Oct 27, 2020 2:44 pm
Forum: Ren'Py Questions and Announcements
Topic: Looking for help and knowledge about customizing and editing choice menus [Updated]
Replies: 4
Views: 256

Re: Looking for help and knowledge about customizing and editing choice menus

You'll want to modify the choice screen so it doesn't use RenPy's default styles but the one you provide instead. screen choice(items): # remove the line with style_prefix "choice" so Ren'Py doesn't use the default styles. frame: #add a frame that will contain the choice buttons. xalign 0.8 # set th...
by RicharDann
Fri Oct 23, 2020 8:38 am
Forum: Ren'Py Questions and Announcements
Topic: Help with CTC positioning?
Replies: 1
Views: 192

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: 255

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: 223

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: 337

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: 332

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: 286

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.