Search found 113 matches

by DannyGMaster
Tue Jul 04, 2017 10:05 pm
Forum: Ren'Py Questions and Announcements
Topic: How can I have a while loop inside a screen?
Replies: 2
Views: 386

Re: How can I have a while loop inside a screen?

Okay, that makes a lot of sense, actually, I somehow imagined having the logic inside the screen was a bad idea. And indeed my loop breaks by itself, bad example, I meant in the case of a loop like while True, but this isnt the case here. Thanks a lot, Alex.
by DannyGMaster
Tue Jul 04, 2017 4:19 pm
Forum: Ren'Py Questions and Announcements
Topic: How do I create a scene with no sprites or textbox?
Replies: 7
Views: 586

Re: How do I create a scene with no sprites or textbox?

Don't know if this will help, but I kind of solved this problem by creating a blank character that says nothing: define nothing = Character('', window_background=None) #This is the blank character, kind of a placeholder label start: "Changing scenes." window hide scene bg meadow with fade nothing ""...
by DannyGMaster
Tue Jul 04, 2017 1:35 pm
Forum: Ren'Py Questions and Announcements
Topic: How can I have a while loop inside a screen?
Replies: 2
Views: 386

How can I have a while loop inside a screen?

OK, first of all I know Ren'Py screens do not support while loops, but please hear me out on this one: I'm writing a simple battle system, and for the battle itself I need a loop that checks if the party leader and the enemy leader are alive, so when one of them dies, the battle ends. Theoretically ...
by DannyGMaster
Tue Jun 27, 2017 11:08 pm
Forum: Ren'Py Questions and Announcements
Topic: How to make transforms reset, or repeat, each time used
Replies: 8
Views: 905

Re: How to make transforms reset, or repeat, each time used

Oh, you re right, its because With expects a transition instead of a transform. Try your original code but put the if statement to the konoko frame, and inside the if use the at statement, add at konoko_show if hidden and at konoko_hide if visible, and the like. I hope that made sense, cant make an ...
by DannyGMaster
Tue Jun 27, 2017 4:08 pm
Forum: Creator Discussion
Topic: Visual novels vs other mediums
Replies: 17
Views: 2149

Re: Visual novels vs other mediums

As you said, VNs are a lot more than people think. I like VNs because most of the time the stories are downright amazing, even the silliest ones have a bit of depth, and you can enjoy them in any way you want. Most of the time you can save at any moment, you can go back if you made a mistake or if y...
by DannyGMaster
Tue Jun 27, 2017 3:40 pm
Forum: Ren'Py Questions and Announcements
Topic: TypeError: string indices must be integers
Replies: 5
Views: 552

Re: TypeError: string indices must be integers

TellerFarsight wrote:
Any idea how to have the default be that it displays nothing?
You mean like make it display no text? Make the values empty strings.

Code: Select all

default mainfolder = [{"sender":" ","subject":" ","email":" ",},]
by DannyGMaster
Tue Jun 27, 2017 3:24 pm
Forum: Ren'Py Questions and Announcements
Topic: How to make transforms reset, or repeat, each time used
Replies: 8
Views: 905

Re: How to make transforms reset, or repeat, each time used

I see, it might be because With() is receiving "konoko_show" and "konoko_hide" as strings, try removing
the " " and see if it works.
by DannyGMaster
Tue Jun 27, 2017 10:54 am
Forum: Ren'Py Questions and Announcements
Topic: About Letting The Player Choose Their Name...
Replies: 5
Views: 1473

Re: About Letting The Player Choose Their Name...

I solved this problem by making a function that changes a character's name directly. init python: def input_name(character): new_name = renpy.input("What is your name?", length=9) new_name = new_name.strip() if not new_name: #So if the player hits enter the default name is used. pass else: character...
by DannyGMaster
Tue Jun 27, 2017 10:28 am
Forum: Ren'Py Questions and Announcements
Topic: How to make transforms reset, or repeat, each time used
Replies: 8
Views: 905

Re: How to make transforms reset, or repeat, each time used

Try using the on statement in your screen to call your transform whenever the screen is shown or hidden.

EDIT: I linked to the wrong section, really sorry. Refer to philat's post below for the correct links.
by DannyGMaster
Mon Jun 26, 2017 12:48 pm
Forum: Ren'Py Questions and Announcements
Topic: Alternating Show/Hide button for screen[SOLVED]
Replies: 2
Views: 315

Re: Alternating Show/Hide button for screen

Try renpy.get_screen()

Code: Select all

hotspot (380, 4, 52, 36):
    if renpy.get_screen('example_screen'):
        action Hide('example_screen', fade)
    else:
        action Show('example_screen', dissolve)
by DannyGMaster
Mon Jun 26, 2017 11:59 am
Forum: Ren'Py Questions and Announcements
Topic: How can I define my "Stats"?
Replies: 1
Views: 194

Re: How can I define my "Stats"?

You should define your variables outside of the start label using the 'default' statement.

Code: Select all

default ls_points = 0

label start:
    
    menu:
         "Hug her.":
      
             $ ls_points += 1

    "Affection points: [ls_points]."
by DannyGMaster
Mon Jun 26, 2017 9:44 am
Forum: Ren'Py Questions and Announcements
Topic: Showing one screen hides another screen[SOLVED]
Replies: 10
Views: 480

Re: Showing one screen hides another screen

Try the 'use' statement. In your quick_menu: default phone_on = False screen quick_menu(): zorder 100 tag menu if quick_menu: if phone_on == True: use phone_menu() imagemap: auto "gui/QuickMenu_%s.png" alpha False hotspot (221, 8, 39, 34) action Preference("auto-forward", "toggle") hotspot (265, 8, ...
by DannyGMaster
Mon Jun 26, 2017 8:33 am
Forum: Ren'Py Questions and Announcements
Topic: Simple Form
Replies: 1
Views: 173

Re: Simple Form

The standard way Ren'py receives user input is with the renpy.input function, when you call it you assign the input to a variable for later use. Here's an example: init python: def input_name(character): new_name = renpy.input("What is your name?", length=9) new_name = new_name.strip() if not new_na...
by DannyGMaster
Sun Jun 25, 2017 10:22 pm
Forum: Ren'Py Questions and Announcements
Topic: need help with inventory? (screens??)
Replies: 3
Views: 396

Re: need help with inventory? (screens??)

trooper6 is right, I am aware of the importance of default, I didnt mention it because I assumed it could have been defined elsewhere in another file where the code for the inventory would be.
by DannyGMaster
Fri Jun 23, 2017 4:11 pm
Forum: Ren'Py Questions and Announcements
Topic: changing a character emotions
Replies: 15
Views: 927

Re: changing a character emotions

LiveComposite with ConditionSwitch's work really nicely, kind of what Mammon was saying. I use it for any number of expressions because it just seems... better? though that might just be a personal preference. Here is an example: image bob = LiveComposite((0,0), (0,0), "bob_base.png", (0,0), Condit...