Search found 2521 matches

by Alex
Tue Jun 16, 2020 4:51 pm
Forum: Ren'Py Questions and Announcements
Topic: Save/Load screen (Page number can go past set amount of pages)
Replies: 11
Views: 973

Re: Save/Load screen (Page number can go past set amount of pages)

... Try it like screen inventory_screen(): add "gui/inventory.png" modal True #prevent clicking on other stuff when inventory is shown imagebutton auto "nav/exit_inv_%s.png" xpos 930 ypos 10 xalign 1.0 focus_mask True action [ Hide("inventory_screen")] #use battle_frame(char=player, position=(.97,....
by Alex
Mon Jun 15, 2020 6:06 pm
Forum: Ren'Py Questions and Announcements
Topic: Need help figuring out how to finish a drag and drop quiz
Replies: 2
Views: 207

Re: Need help figuring out how to finish a drag and drop quiz

Since you've called the screen it must return something to end the game. So, make some checks in your 'myobject_drag' function and make the function return 'True' if check passed. You may add two more keys in a dictionary that describes an item, like 'current_category' and 'right_category'. When pla...
by Alex
Mon Jun 15, 2020 3:03 pm
Forum: Ren'Py Questions and Announcements
Topic: Style Menu in screen="airport"
Replies: 4
Views: 1485

Re: Style Menu in screen="airport"

... Try screen airport(txt, items): # screen similar to original choice screen style_prefix "choice" #<--- change to your own style if needed vbox: text "~airport /[txt]/~" xalign 0.5 for i in items: textbutton i.caption action i.action # The game starts here. label start: "..." menu jfk ("Some Nam...
by Alex
Tue May 26, 2020 12:10 pm
Forum: Ren'Py Questions and Announcements
Topic: Game stops when no actions
Replies: 6
Views: 335

Re: Game stops when no actions

If you add this to the screen, player won't be able to progress in game while this screen is shown.

Code: Select all

key 'dismiss' action NullAction()
https://www.renpy.org/doc/html/screens.html#key
by Alex
Mon May 25, 2020 5:41 pm
Forum: Ren'Py Questions and Announcements
Topic: Game stops when no actions
Replies: 6
Views: 335

Re: Game stops when no actions

It would be better if you'll provide the code you have so far. What do you mean by 'exiting' - returning to main menu or exiting the screen, or..? When you run your project, the code is executed line by line until it reaches the point where it should return back to main menu. Some statements (comand...
by Alex
Sun May 24, 2020 4:58 pm
Forum: Ren'Py Cookbook
Topic: Simple minigames (Screen Language only).
Replies: 97
Views: 50369

Re: Simple minigames (Screen Language only).

... I meant that each move can be used only a couple times per battle, like what you were saying "using a supermove only 3 times per battle". I was planning on using it with the one on one battle. while (wolf_hp > 0) and (red_hood_hp > 0): menu: "Atack!": $ wolf_hp -= 2 r "K-y-aaa!!!11 (damage deal...
by Alex
Sun May 24, 2020 4:51 am
Forum: Ren'Py Cookbook
Topic: Simple minigames (Screen Language only).
Replies: 97
Views: 50369

Re: Simple minigames (Screen Language only).

...I was just wondering, on the battle sequence thing you've created, is there a way to make it so you can choose an option only x amount of times? Sort of like Pokemon PP for the moves?... Hi, ForeverAScone! What battle sequence you plan to use (1 on 1 or group one)? And how it works "you can choo...
by Alex
Sat May 23, 2020 8:46 am
Forum: Ren'Py Questions and Announcements
Topic: BUG: save that brings you back to previous point
Replies: 4
Views: 243

Re: BUG: save that brings you back to previous point

How did you 'call' your game and how did you return back to main gameflow?
Can you show a test script (some text in label, calling some label instead of actual game, returning back), will it work for you or will give the same issue with saving/loading?
by Alex
Wed May 20, 2020 2:24 pm
Forum: Ren'Py Questions and Announcements
Topic: How to have an Imagebutton in Viewport? [Solved]
Replies: 2
Views: 244

Re: How to have an Imagebutton in Viewport?

...How do I convert this so that instead of a viewable and scrollable list of text and static images it is a viewable and scrollable list of text and selectable images? ... Just replace text and image with the imagebutton. Since you making an inventory, I suppose you have a list of items, so you co...
by Alex
Mon May 18, 2020 9:32 am
Forum: Ren'Py Questions and Announcements
Topic: Button actions
Replies: 6
Views: 280

Re: Button actions

... So can I do something like below?... While you can, take in mind that showing screen won't stop Ren'Py from executing your code farther. So, the exact code you've posted will show your button screen and immediately run the 'hello_world' label (the next line of code). Check this thread - https:/...
by Alex
Mon May 18, 2020 6:55 am
Forum: Ren'Py Questions and Announcements
Topic: Button actions
Replies: 6
Views: 280

Re: Button actions

Hi I'm a bit confused Is the screen action the right way to make a button doing something on click? I mean, I'm using an imagebutton so when I click on it I want a text to appear, do I have to call a screen with the text in it? That depends of what you trying to achieve. This might be screen button...
by Alex
Sat May 16, 2020 4:28 am
Forum: Ren'Py Questions and Announcements
Topic: Create a "like" button, which only counts up once
Replies: 4
Views: 383

Re: Create a "like" button, which only counts up once

Try to add one more property to chat object to track if player liked it or not. So, if player haven't liked it yet, button will add 1 to likes, otherwise subtract 1.
by Alex
Tue May 12, 2020 3:16 pm
Forum: Ren'Py Questions and Announcements
Topic: How to change the scale of custom Namebox?
Replies: 1
Views: 163

Re: How to change the scale of custom Namebox?

Try either set the namebox width big enough to keep any name you'll use in your game, or change the namebox borders

Code: Select all

define gui.namebox_borders = Borders(8, 8, 8, 8)
https://www.renpy.org/doc/html/gui.html#borders
by Alex
Mon May 11, 2020 4:04 am
Forum: Completed Games
Topic: Kasuka
Replies: 75
Views: 24914

Re: Kasuka

Didn't found this game..., but you could try some other retro games - https://games.renpy.org/