Search found 16 matches

by JaydenAndressen
Sun Jun 26, 2022 10:18 pm
Forum: Ren'Py Questions and Announcements
Topic: How to make a 2nd sfx channel w/o looping
Replies: 3
Views: 252

Re: How to make a 2nd sfx channel w/o looping

Oh ok, I understand now.

So it would be:

Code: Select all

init:
    init python:
        renpy.music.register_channel("sound2", "sfx", loop=False)
Or:

Code: Select all

init:
    init python:
        renpy.music.register_channel("sound2", "sfx", False)
Got it, thx guys :)
by JaydenAndressen
Sun Jun 26, 2022 1:38 am
Forum: Ren'Py Questions and Announcements
Topic: How to make a 2nd sfx channel w/o looping
Replies: 3
Views: 252

How to make a 2nd sfx channel w/o looping

How to I make a 2nd sfx channel without the sound effect looping? I know how to do the code... but when I use the channel to play a sound effect, it just keeps infinitely looping. I don't want it to loop.

Code: Select all

init:
    init python:
        renpy.music.register_channel("sound2", "sfx", True)
by JaydenAndressen
Sun Jan 23, 2022 3:20 am
Forum: Ren'Py Questions and Announcements
Topic: $ vs Default
Replies: 1
Views: 236

$ vs Default

$ vs default, what is the difference between these two? And where/when should they be used in code?
by JaydenAndressen
Mon Nov 15, 2021 1:26 am
Forum: Ren'Py Questions and Announcements
Topic: Making a system that allows you to gain points/spend them
Replies: 6
Views: 390

Re: Making a system that allows you to gain points/spend them

Try putting one of these "$" before your three variables.

It should look like this:

Code: Select all

if physical >= 2:
    $ physical_points += 5

elif physical == 1:
    $ physical_points += 4
else:
    $ physical_points += 3
by JaydenAndressen
Sat Nov 13, 2021 3:39 pm
Forum: Ren'Py Questions and Announcements
Topic: Making a system that allows you to gain points/spend them
Replies: 6
Views: 390

Re: Making a system that allows you to gain points/spend them

You have two errors that I can see. very simple fix. First is this: if physical >= 2: physical_points += 5 your variable needs four spaces before it instead of two. Like this: if physical >= 2: physical_points += 5 This is probably because code can be overly sensitive. So make sure everything is for...
by JaydenAndressen
Thu Nov 11, 2021 7:04 pm
Forum: Ren'Py Questions and Announcements
Topic: Is there a way to do a hack and slash platformer?
Replies: 2
Views: 807

Is there a way to do a hack and slash platformer?

Question, is there any code for a hack and slash platformer in Renpy?

If not, then how would I code this?
by JaydenAndressen
Sun Oct 17, 2021 4:23 pm
Forum: Ren'Py Questions and Announcements
Topic: Audio Visualizations - In game while music plays
Replies: 2
Views: 699

Audio Visualizations - In game while music plays

How would I make Audio Visualizations show up on screen in game, and how to make them respond to whatever music is playing in game? I want something simple, like audio bars. Here's an example of Audio Visualizations bars: https://www.google.com/search?q=audio+visualization+bars&sxsrf=AOaemvKgHUBqeH-...
by JaydenAndressen
Fri Oct 16, 2020 10:39 am
Forum: Ren'Py Questions and Announcements
Topic: add/remove variables from lists via 'textbutton'
Replies: 1
Views: 369

add/remove variables from lists via 'textbutton'

A simple question

How do I add/remove a variable from a list via a 'textbutton'?

I want to be able to click on a text button and add or remove a variable from a list.
by JaydenAndressen
Fri Oct 16, 2020 10:37 am
Forum: Ren'Py Questions and Announcements
Topic: Display Image behind 'centered' text
Replies: 2
Views: 498

Re: Display Image behind 'centered' text

Ah, got it. This seems to work. Thanks again.
by JaydenAndressen
Mon Oct 05, 2020 7:12 pm
Forum: Ren'Py Questions and Announcements
Topic: Display Image behind 'centered' text
Replies: 2
Views: 498

Display Image behind 'centered' text

How to I display an image behind 'centered' text? I do not want to add a displayable image every single time I want a background or an image for centered text. I want an image behind centered text automatically. label start: player 1 "blah blah blah." player 2 "blah blah blah." centered "this text a...
by JaydenAndressen
Sat Oct 03, 2020 12:20 am
Forum: Ren'Py Questions and Announcements
Topic: How to auto-generate instances of a class?
Replies: 5
Views: 432

Re: How to auto-generate instances of a class?

My bad, I've been using 'TL' instead of 'c' in my game. I try to stick with 'c' on the forum so not to confuse people. But it would've been mylist.append(c) And your guess is 100% correct. I was wanting to loop through all the variables. Now by applying this new info, the code now looks like this: i...
by JaydenAndressen
Fri Oct 02, 2020 5:05 pm
Forum: Ren'Py Questions and Announcements
Topic: How to auto-generate instances of a class?
Replies: 5
Views: 432

Re: add Class properties to Auto Generated Variables?

Interesting, now if I wanted to add all of those generated variables into a list automatically, how would I get them in there? Instinctually I want to add this in there: mylist.append(TL) But this obviously doesn't work. How do I make it work? init python hide: mylist = [] for i in range(10): c = "c...
by JaydenAndressen
Fri Oct 02, 2020 1:36 am
Forum: Ren'Py Questions and Announcements
Topic: How to auto-generate instances of a class?
Replies: 5
Views: 432

How to auto-generate instances of a class?

How to add Class properties to Auto Generated Variables? Similar question to what I asked here: https://lemmasoft.renai.us/forums/viewtopic.php?f=8&t=60226&hilit=PinkEngine&sid=a99d80999f63b1863778998e7ae08de6 How do I do the same thing, but apply it to Class Variables? Example: I have this Class: c...
by JaydenAndressen
Thu Oct 01, 2020 3:54 pm
Forum: Ren'Py Questions and Announcements
Topic: How to Auto Generate Variables in-game
Replies: 2
Views: 351

Re: How to Auto Generate Variables in-game

Hmm... fascinating.

I never would've guessed I could do it this way. This helps me.
I will take a look at PinkEngine's code. Maybe I'll learn a few more tricks.

Thanks.
~epic assist~ :)