Search found 101 matches

by MaydohMaydoh
Sun Sep 02, 2018 6:59 pm
Forum: Ren'Py Questions and Announcements
Topic: Creating a custom name after pressing new game?
Replies: 2
Views: 247

Re: Creating a custom name after pressing new game?

Create a label with the input and call it from the start button. default player_name = "" label name_input(): python: player_name = renpy.input("", default="meme", length=20) player_name = player_name.strip() return screen main_menu(): textbutton "Start" action [ Call('name_input'), Start() ]
by MaydohMaydoh
Sat Sep 01, 2018 8:10 pm
Forum: Ren'Py Questions and Announcements
Topic: Is it possible to make a point system like that?
Replies: 4
Views: 294

Re: Is it possible to make a point system like that?

First of all you want to declare a variable default points = 0 Then you want to make a screen to show the points screen score(): text "Points: [points]" align (1.0, 0.0) After that you want to show the screen and the questions, adding points to the variable when the answer is correct label start: sh...
by MaydohMaydoh
Sat Sep 01, 2018 8:23 am
Forum: Ren'Py Questions and Announcements
Topic: Change main menu music during the game? [Solved]
Replies: 7
Views: 750

Re: Change main menu music during the game?

Use the label "before_main_menu" instead.
by MaydohMaydoh
Thu Aug 30, 2018 6:36 am
Forum: Ren'Py Questions and Announcements
Topic: Skip Main Menu to Start [Solved]
Replies: 4
Views: 271

Re: Skip Main Menu to Start

May be missing the gui init. Stick this in and see if it works.

Code: Select all

init python:
    gui.init(1360, 768)
by MaydohMaydoh
Tue Aug 28, 2018 5:02 am
Forum: Ren'Py Questions and Announcements
Topic: Calling LayeredImageProxy in a screen [SOLVED]
Replies: 4
Views: 323

Re: Calling LayeredImageProxy in a screen

The error seems to be related to the layeredimage not being defined. So if you could the code for your layeredimage.
by MaydohMaydoh
Mon Aug 27, 2018 9:53 pm
Forum: Ren'Py Questions and Announcements
Topic: Calling LayeredImageProxy in a screen [SOLVED]
Replies: 4
Views: 323

Re: Calling LayeredImageProxy in a screen

Code: Select all

layeredimage illu1:
    ## etc...
    
image illu1_proxy = LayeredImageProxy("illu1")

screen illu1:

    add "illu1_proxy"
by MaydohMaydoh
Mon Aug 27, 2018 8:56 pm
Forum: Ren'Py Questions and Announcements
Topic: Why are my character expressions not changing?
Replies: 3
Views: 566

Re: Why are my character expressions not changing?

You've defined the character image as something different from the image name. define c = Character("Call", image="call") image call standard = "temp_call_basic.png" ## etc... define Bel = Character("Receptionist", image="beluga") image beluga talking = "temp_beluga_talk.png" ## etc... The character...
by MaydohMaydoh
Mon Aug 27, 2018 2:29 pm
Forum: Ren'Py Questions and Announcements
Topic: Change the buttons position in the main screen and preferences menu individually
Replies: 8
Views: 1063

Re: Change the buttons position in the main screen and preferences menu individually

My mistake, should be renpy.get_screen('main_menu').
Parenthesis not square brackets.
by MaydohMaydoh
Mon Aug 27, 2018 1:51 pm
Forum: Ren'Py Questions and Announcements
Topic: Change the buttons position in the main screen and preferences menu individually
Replies: 8
Views: 1063

Re: Change the buttons position in the main screen and preferences menu individually

The main_menu variable will return true until you start the game.
Instead you'll want to use

Code: Select all

if renpy.get_screen['main_menu']:
    xalign 0.5
    ypos 400
else:
    xpos 90
    ypos 240
to ask if the main menu screen is currently showing.
by MaydohMaydoh
Sat Aug 25, 2018 1:31 pm
Forum: Ren'Py Questions and Announcements
Topic: Error
Replies: 2
Views: 258

Re: Error

Renpy searches for files in the game folder. So if you put it in a sub folder called "music", you'll need to direct it there.
Just use define config.main_menu_music = "music/music.mp3"
by MaydohMaydoh
Sat Aug 25, 2018 12:27 pm
Forum: Ren'Py Questions and Announcements
Topic: Changing sprite mid-sentence?
Replies: 2
Views: 350

Re: Changing sprite mid-sentence?

You could use the no wait text tag to display the first part of the dialogue, change the image then display the full dialogue without the user having to click and use the fast tag to display what was already displayed instantly to make it look like it just continues without break. e "I see...{nw}" e...
by MaydohMaydoh
Sat Aug 25, 2018 9:36 am
Forum: Ren'Py Questions and Announcements
Topic: layered image with eyes blinking ATL Block
Replies: 1
Views: 172

Re: layered image with eyes blinking ATL Block

I think you just need to add the defined image into the layeredimage like normal image eileen_eyes_normal: "eileen_eyes_[eye_color]_open" choice: pause 6 choice: pause 10 choice: pause 4 "eileen_eyes_blink" pause 0.1 "eileen_eyes_[eye_color]_open_half" pause 0.1 repeat layeredimage eileen: always "e...
by MaydohMaydoh
Sat Aug 25, 2018 8:41 am
Forum: Ren'Py Questions and Announcements
Topic: buttons actions, navigation and game flow issues [SOLVED]
Replies: 3
Views: 178

Re: buttons actions, navigation and game flow issues

First of all, you need to use SetField instead of SetVariable when changing a class attribute. imagebutton: auto "gui/quick_map_%s.png" action SetField(player, 'current_location', "map") Second, because when the action list is called, it takes the variables as they are at the time, so even though yo...
by MaydohMaydoh
Fri Aug 24, 2018 12:23 pm
Forum: Ren'Py Questions and Announcements
Topic: Drawing in Ren'Py
Replies: 23
Views: 2104

Re: Drawing in Ren'Py

You set screenshot crop to the size of the canvas https://www.renpy.org/doc/html/config.html?highlight=crop#var-config.screenshot_crop and make a button that calls the Screenshot function I plan to add something like that eventually. Simple example define config.screenshot_crop = (0, 0, 500, 500) sc...
by MaydohMaydoh
Fri Aug 24, 2018 11:09 am
Forum: Ren'Py Questions and Announcements
Topic: Drawing in Ren'Py
Replies: 23
Views: 2104

Re: Drawing in Ren'Py

If you're using Human Bolt Diary's example, in the FreehandCanvas init, there's a line_width variable. That controls the line width. If you're building from scratch you don't need line_width and can just give the width to the render directly. render.canvas().lines(self.colour, False, self.lines, sel...