Search found 2217 matches

by Alex
Tue May 28, 2019 3:37 pm
Forum: Ren'Py Questions and Announcements
Topic: Textbutton with two lines with different align. Is it possible?
Replies: 2
Views: 431

Re: Textbutton with two lines with different align. Is it possible?

Or try to put those text lines inside a button - https://www.renpy.org/doc/html/screens.html#button button: align(0.5,0.15) idle_background gui.idle_color hover_background gui.hover_color vbox: xysize(200,200) text "Line 1" align(0.0, 0.2) text "Line 2" align(1.0, 0.8) action NullAction()
by Alex
Sun May 26, 2019 6:55 pm
Forum: Ren'Py Questions and Announcements
Topic: Call fonction in a general screen
Replies: 2
Views: 469

Re: Call fonction in a general screen

Try to make an apropriate function and run it when showing the screen

Code: Select all

screen lalala():
    on "show" action Function(my_func)
https://www.renpy.org/doc/html/screens.html#on
by Alex
Sat May 25, 2019 5:39 am
Forum: Ren'Py Questions and Announcements
Topic: I want to make a health-bar/life system [Solved]
Replies: 13
Views: 752

Re: I want to make a health-bar/life system [HELP]

Well, the only thing you need to do is replace bar value AnimatedValue(value=health, range=max_health, delay=2.0) in your healthscreen screen with the ConditionSwitch, that changes image depending of health variable. You don't need to change other things you've already done to make a button to show/...
by Alex
Fri May 24, 2019 1:30 pm
Forum: Ren'Py Questions and Announcements
Topic: How to enable Quick Menu if Main Menu is skipped
Replies: 3
Views: 415

Re: How to enable Quick Menu if Main Menu is skipped

Well, try something like

Code: Select all

label splashscreen:
    $ persistent.my_flag = False
    "stuff"
    return

label main_menu:
    if not persistent.my_flag:
        $ persistent.my_flag = True
        return
    call screen main_menu
by Alex
Fri May 24, 2019 11:29 am
Forum: Ren'Py Questions and Announcements
Topic: I want to make a health-bar/life system [Solved]
Replies: 13
Views: 752

Re: I want to make a health-bar/life system [HELP]

In this case you can use a simple ConditionSwitch instead of bar - viewtopic.php?f=51&t=19063
by Alex
Fri May 24, 2019 11:24 am
Forum: Ren'Py Questions and Announcements
Topic: How to enable Quick Menu if Main Menu is skipped
Replies: 3
Views: 415

Re: How to enable Quick Menu if Main Menu is skipped

Try to get rid of jump and end the splashscreen label with return statement to let it go to main menu and actually start game from there.
If you don't need main menu at all make a label

Code: Select all

label main_menu:
    return
by Alex
Fri May 24, 2019 11:12 am
Forum: WiP: Short Noncommercial Games
Topic: Coffee Mixer [Friendship][Pixel]
Replies: 9
Views: 411

Re: Coffee Mixer [Friendship][Pixel]

1. Personally, I like pixel-art. And samples you've posted looks nice and cute...;) This might be that the more simplier art is the more imagination player should use, so it will fit right to him/her. 2. It's up to you how you'll made your story - do what you feel you could do the best. 3. You could...
by Alex
Mon May 20, 2019 3:46 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Call Screens
Replies: 11
Views: 245

Re: Call Screens

That's kind of strange... ...Maybe there is some way to hide the tootl tip image when i click the button?? Yes, you can set a list of actions for the button/hotspot, try hotspot (430, 33, 238, 213) action [Hide("image_float", Start('cheelai_chapter')] hovered [ Play ("test_one", "sfx/click.wav"), Sh...
by Alex
Mon May 20, 2019 5:48 am
Forum: Ren'Py Questions and Announcements
Topic: How to run python commands as the result of a screen language action?
Replies: 9
Views: 216

Re: How to run python commands as the result of a screen language action?

Uh, I've read your first post once again... For the code from 1st post you just need to set a variable, so you can use SetVariable("cur_new", ("cursor-point.png", 0, 0)) action - https://www.renpy.org/doc/html/screen_actions.html#SetVariable Also, there is a way to change mouse pointer by setting co...
by Alex
Mon May 20, 2019 4:54 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Disable arrow keys on imagemaps only
Replies: 8
Views: 203

Re: Help! Disable arrow keys on imagemaps only

Kinmoku wrote:
Mon May 20, 2019 4:19 am
...On the first arrow key press, usually "jeansbutton" or "clothesbutton" will hover, ...
And what if put your arrows buttons before other buttons in screen code? This might be that the fist button/hotspot in screen is focused by default.
by Alex
Sun May 19, 2019 2:47 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Call Screens
Replies: 11
Views: 245

Re: Call Screens

Khm, your hotspot shows "image_float" screen while hovered, but tries to hide "gui_tooltip" screen when unhovered... That's why "image_float" screen remains onscreen.
by Alex
Sat May 18, 2019 8:29 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Call Screens
Replies: 11
Views: 245

Re: Call Screens

So you should start the game from main menu and only then show the select screen to choose chapter, and in this screen should have a Jump('cheelai_chapter') action instead of Start action.
by Alex
Sat May 18, 2019 6:39 pm
Forum: Ren'Py Questions and Announcements
Topic: How to run python commands as the result of a screen language action?
Replies: 9
Views: 216

Re: How to run python commands as the result of a screen language action?

For buttons and hotspots one can set the mouse property - https://www.renpy.org/doc/html/style_properties.html#style-property-mouse This will change mouse pointer while it hovers over this button/hotspot. To make it work you need to specify all the neccessary pointers, like define config.mouse{"defa...
by Alex
Sat May 18, 2019 5:29 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Call Screens
Replies: 11
Views: 245

Re: Call Screens

You see, the way you've made this select screen made it a kind of part of the main menu. So if you want to choose another player you need to end current game and return to main menu at first. You could either send player back to main menu to let choose another name/chapter or rearrange your code to ...