Search found 167 matches

by MoonByte
Tue Jul 27, 2021 1:15 pm
Forum: Ren'Py Questions and Announcements
Topic: Force sound to play fully (for lightning with sound via ATL)
Replies: 0
Views: 24

Force sound to play fully (for lightning with sound via ATL)

I have a "lightning with sound" code which looks like this: init -1 python: def thunder_sound(trans, st, at): renpy.play("audio/sound/thunder.mp3", channel="sound") image lightning: choice: #weight of choice is 1 "lightning.png" alpha 0.0 function thunder_sound 0.5 # show nothing for 0.5 seconds cho...
by MoonByte
Fri Jul 23, 2021 2:29 pm
Forum: Ren'Py Questions and Announcements
Topic: Sectionalizing Leon's CG Gallery? [Solved (kinda)]
Replies: 0
Views: 363

Sectionalizing Leon's CG Gallery? [Solved (kinda)]

EDIT: I broke the gallery like 10 times, trying to figure this out, and finally decided to improvise and build the entire thing with image buttons, so I don't need help anymore :P ------- I am using Leon's code for a CG gallery which works just fine except for two small things: 1) I have so many CGs...
by MoonByte
Thu May 27, 2021 11:27 am
Forum: Ren'Py Cookbook
Topic: 16 mini game Renpy
Replies: 45
Views: 45706

Re: 16 mini game Renpy

All of these are amazing! I have a small question in regard to the memory game though I have two different characters that would play that game with the PC and I want each to use their own cards (like, Character A has you sort flowers, Character B has you sort animals). Is there a way to tell set it...
by MoonByte
Sun May 23, 2021 10:44 am
Forum: Ren'Py Questions and Announcements
Topic: Main Menu customisation
Replies: 3
Views: 674

Re: Main Menu customisation

Yes, you can technically make any and all menus like this! Loading screen, gallery menu, quick menu, maybe some custom thing like a mobile phone that players can use during the game. You can look at this , for example, it claims to go through the whole game setup with imagebuttons. I'll be honest th...
by MoonByte
Sat May 22, 2021 12:10 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Automated "reaction" (such as an image appearing) when changing a specific condition?
Replies: 9
Views: 771

Re: Automated "reaction" (such as an image appearing) when changing a specific condition?

I copy & pasted the code into a brand new project and it indeed works without any complaints... Trying to launch my project with the error only causes an error before I even reach the start screen. So I guess, it is indeed an issue in that project. I will just save all the important code separately ...
by MoonByte
Sat May 22, 2021 9:37 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Automated "reaction" (such as an image appearing) when changing a specific condition?
Replies: 9
Views: 771

Re: Automated "reaction" (such as an image appearing) when changing a specific condition?

Ok, this is getting embarrassing for me now lol It worked just fine in my test game with just a and b as variables So I went and put the ACTUAL variables in for all my characters (warning, obviously long list of stuff): init python: def my_func(txt, pos, t=4.0): renpy.show_screen("test_scr", my_txt=...
by MoonByte
Fri May 21, 2021 4:54 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Automated "reaction" (such as an image appearing) when changing a specific condition?
Replies: 9
Views: 771

Re: Automated "reaction" (such as an image appearing) when changing a specific condition?

Ok, it is technically solved as it shows the pictures how I want them so I promise this is my last ask for this :'3 So I have this: init python: def my_func(txt, pos, t=4.0): renpy.show_screen("test_scr", my_txt=txt, txt_pos=pos, t=t) def check_func(): global a, b, a_old, b_old if a > a_old: my_func...
by MoonByte
Fri May 21, 2021 2:26 pm
Forum: Ren'Py Questions and Announcements
Topic: Main Menu customisation
Replies: 3
Views: 674

Re: Main Menu customisation

Does it HAVE to be an image map? I used them in the past as well, but figuring out the exact "button" location was always a bit of a hassle plus I had to make the buttons seperately anyway, soooo... If you're ok with image buttons (else ignore this and wait for someone that probably understands imag...
by MoonByte
Fri May 21, 2021 1:58 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Automated "reaction" (such as an image appearing) when changing a specific condition?
Replies: 9
Views: 771

Re: Automated "reaction" (such as an image appearing) when changing a specific condition?

Ok, so it def works automatically and also much thanks for the callback link! Now I guess I have to show my "starter with programming" card and confess: how do I make it an image instead of text cause when I simply exchange the "< a is up >" with "heart.png", it just says that as text on the screen....
by MoonByte
Fri May 21, 2021 12:44 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Automated "reaction" (such as an image appearing) when changing a specific condition?
Replies: 9
Views: 771

[SOLVED] Automated "reaction" (such as an image appearing) when changing a specific condition?

I have genuinely no idea if it is possible, so getting told "nope, sorry", is obviously absolutely fine. I am making a dating sim and during each meeting with a character, the player gets a total of up to 20 options that increase or decrease their relationship meter. Most Dating Sims make that a tri...
by MoonByte
Mon May 17, 2021 10:14 am
Forum: Ren'Py Questions and Announcements
Topic: One variable with multiple attributes (I want an input check where multiple answers are correct) [SOLVED]
Replies: 2
Views: 506

Re: One variable with multiple attributes (I want an input check where multiple answers are correct)

Thanks, Ocelot, it works!

Code: Select all

$ code = renpy.input ("Well? What time is it?")
$ code = code.lower()
if code in ["crazy time", "crazy-time", "crazytime", "idonthavetimeforthis"]:
	jump right_code_white
else:
        jump wrong_code_white
by MoonByte
Mon May 17, 2021 9:32 am
Forum: Ren'Py Questions and Announcements
Topic: One variable with multiple attributes (I want an input check where multiple answers are correct) [SOLVED]
Replies: 2
Views: 506

One variable with multiple attributes (I want an input check where multiple answers are correct) [SOLVED]

I lack the programming vocabulary so sorry if the title sounds confusing, but the idea is basically this: I ask for a password. I give them the correct answer. Later they have to put in the answer. My dilemma is now this: People might use like 15 ways to write the password in regard to upper and low...
by MoonByte
Sun May 16, 2021 4:46 pm
Forum: Ren'Py Questions and Announcements
Topic: Unlockable Main Menu button problem [SOLVED]
Replies: 7
Views: 660

Re: Unlockable Main Menu button problem [SOLVED]

Ooooh, that looks at least much nicer!
Thank you!

P.S.
In case anyone here is looking for help, I noticed one small thing: do NOT use "Jump" in it. Use Start(label name). Or you play the game IN the main menu :'D
by MoonByte
Sun May 16, 2021 4:39 pm
Forum: Ren'Py Questions and Announcements
Topic: Unlockable Main Menu button problem [SOLVED]
Replies: 7
Views: 660

Re: Unlockable Main Menu button problem

Ah ok, I misunderstood what you meant with the auto comment, my bad. if persistent.black == True: imagebutton auto "gui/menu/black_%s.png" xpos 1100 ypos 110 focus_mask True action Jump("black1x0") else: imagebutton auto "gui/menu/black_%s.png" xpos 1100 ypos 110 focus_mask True This version works (...