Search found 36 matches

by chewpower
Sun Jun 16, 2013 9:43 am
Forum: Ren'Py Questions and Announcements
Topic: Return button immediately jumps to main menu (solved)
Replies: 7
Views: 3657

Re: Return() immediately jumps to main menu + in-game button

Thank you for the reply! You could try vbox: xalign .98 yalign 0.02 textbutton _("Inventory") action ui.callsinnewcontext("screen actual_inventory_screen") xpadding 5 ypadding 20 Tried it, but RenPy says there is this error: ScriptError: could not find label 'screen actual_invent...
by chewpower
Sat Jun 15, 2013 11:30 pm
Forum: Ren'Py Questions and Announcements
Topic: Return button immediately jumps to main menu (solved)
Replies: 7
Views: 3657

Return button immediately jumps to main menu (solved)

Dear all, I'm trying to make a button to access inventory and it must always be visible within the game. So what I did: I make a screen containing textbutton like this screen in_menu_button: vbox: xalign .98 yalign 0.02 textbutton _("Inventory") action Jump("some_label") xpadding...
by chewpower
Sat Jun 15, 2013 12:17 am
Forum: Ren'Py Questions and Announcements
Topic: Inventory Screen with Pagination [SOLVED]
Replies: 3
Views: 813

Re: Inventory Screen with Pagination

Oh, yes! Thank you apricotorange! I finally managed to solve this as follows screen inv_picture: add "nice_background.jpg" default inventory_page = 0 # pagination use inv_pagination # grid grid 4 2: # insert position here if(len(inventory) - (inventory_page * 8) >= 8): for i in range((inve...
by chewpower
Fri Jun 14, 2013 10:00 pm
Forum: Ren'Py Questions and Announcements
Topic: Inventory Screen with Pagination [SOLVED]
Replies: 3
Views: 813

Inventory Screen with Pagination [SOLVED]

Hello all, I'm trying to make an inventory screen. The are 20 items that can be added to the inventory, but the max number of item to display is limited, say 8. That said, navigation (next/back) is required in order to browse through the entire inventory. I implemented the inventory itself from this...
by chewpower
Wed Apr 24, 2013 7:58 am
Forum: Ren'Py Questions and Announcements
Topic: [solved] Custom UI
Replies: 7
Views: 864

Re: Custom UI

Ah I'm sorry, try the code described in this: Tutorial: Cutomizing Menus . I did the example in the "Main Menu & Yes/No Prompt" and it works wonders. You only need to do something like this. screen main_menu: # This ensures that any other menu screen is replaced. tag menu imagemap: gro...
by chewpower
Wed Apr 24, 2013 7:28 am
Forum: Ren'Py Questions and Announcements
Topic: [solved] Custom UI
Replies: 7
Views: 864

Re: Custom UI

I think this part is unnecessary, for it's basically the old default menu. Try removing this? frame: style_group "mm" xalign .98 yalign .98 has vbox textbutton _("Start Game") action Start() textbutton _("Load Game") action ShowMenu("load") textbutton _("...
by chewpower
Wed Apr 24, 2013 1:49 am
Forum: Ren'Py Questions and Announcements
Topic: How to constantly check variable [solved]
Replies: 5
Views: 2032

Re: How to constantly check variable

Thank you, apricotorange. I didn't know much about screen yet and any of it's useful features so I'll start reading the documentation now. About the gameplay I'm now considering not to use the timer, maybe I'll just pop the phonecall at randomly selected "available" points in the game. Of ...
by chewpower
Tue Apr 23, 2013 11:43 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] Custom UI
Replies: 7
Views: 864

Re: Custom UI

Maybe you should post the code you're using for customizing the menu? what those shortcuts on the right botton of the page are called and how can I costumize them? If it's possible to remove them I'd like to know too. Those are quick_menu screen. You can find the lines on screens.rpy that begins wit...
by chewpower
Tue Apr 23, 2013 11:37 pm
Forum: Ren'Py Questions and Announcements
Topic: How to constantly check variable [solved]
Replies: 5
Views: 2032

Re: How to constantly check variable

The only thing I can think of off the top of my head is an overlay . Thanks, I'll try to dig it out. What do you mean by "any random time"? Thanks, I'm thinking more like few minutes after the player trigger the mission. So when the player comes to a part where this mission begins, I'll s...
by chewpower
Tue Apr 23, 2013 1:29 am
Forum: Ren'Py Questions and Announcements
Topic: How to constantly check variable [solved]
Replies: 5
Views: 2032

How to constantly check variable [solved]

In my game, the gameplay requires a player to answer a phonecall to accomplish a mission, but the phonecall can happen at any random time. So assuming I can find a way to set a random timer to decide when to call the player and I put this in a variable that say $ call_now = True or something like th...
by chewpower
Mon Apr 22, 2013 12:45 am
Forum: Ren'Py Questions and Announcements
Topic: Second splash screen? [Solved]
Replies: 6
Views: 1995

Re: Second splash screen? [Solved]

Oh My God it actually IS that simple lol now i feel like a total newb (which I already am) thank you pwisaguacate for sharing this information
by chewpower
Sun Apr 21, 2013 9:04 pm
Forum: Ren'Py Questions and Announcements
Topic: Second splash screen? [Solved]
Replies: 6
Views: 1995

Re: Second splash screen? [Solved]

Ah, I thought by splash screen you mean an image is shown without being able to be interrupted. So I went and overdid myself :D but yeah it actually is that simple
by chewpower
Sun Apr 21, 2013 7:31 am
Forum: Ren'Py Questions and Announcements
Topic: Second splash screen? [Solved]
Replies: 6
Views: 1995

Re: Second splash screen?

I'm really sorry. The only way for the above solution to work is if only there's a say statement inside the while function. Else, the game would freeze and "not responding". So here's a little fix $ min_now, sec_now = divmod(int(renpy.get_game_runtime()), 60) $ flag = True while flag == Tr...
by chewpower
Sun Apr 21, 2013 12:50 am
Forum: Ren'Py Questions and Announcements
Topic: Second splash screen? [Solved]
Replies: 6
Views: 1995

Re: Second splash screen?

I'm trying to add screens that say "Chapter # complete", but using images instead. I don't know about splash screen but I'll show you my approach. I just read about keymap in this link and it says that you can modify list of keys that user can click in order to make something in Ren'Py wo...