Search found 113 matches

by DannyGMaster
Fri Jun 23, 2017 12:21 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Clickable images during the game?
Replies: 2
Views: 3423

Re: Clickable images during the game?

Yes, they are called imagebuttons.

Here's a link wich explains them in great detail and has good examples:

viewtopic.php?f=51&t=22565


Also Ren'Py's Documentation:
https://www.renpy.org/doc/html/screens.html#imagebutton
by DannyGMaster
Fri Jun 23, 2017 11:06 am
Forum: Ren'Py Questions and Announcements
Topic: Quick Save/Load keybinds
Replies: 1
Views: 3974

Re: Quick Save/Load keybinds

Modifying the default keymap in 00keymap.rpy seems to be bit tricky and could break things if you don't know exactly what you're doing. So I think it's safer to add new keymaps to the main screens in your game. If you will have your quick_menu screen up all the time, you can add a key statement at t...
by DannyGMaster
Fri Jun 23, 2017 9:26 am
Forum: Ren'Py Questions and Announcements
Topic: need help with inventory? (screens??)
Replies: 3
Views: 595

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

I can't really be sure without testing since I don't have all those images, but the problem seems to be in this part: screen inventory_screen(): vbox: align (0.9, 0.0) text "Inventory:" for item in backpack: text ("[item]") # The game starts here. label start: $backpack = set() s...
by DannyGMaster
Fri Jun 23, 2017 8:56 am
Forum: Ren'Py Questions and Announcements
Topic: changing a character emotions
Replies: 15
Views: 2746

Re: changing a character emotions

Well, yes. You can have: image bob happy = 'images/bob/bob_happy.png' image bob angry = 'images/bob/bob_angry.png' image sara happy = 'images/sara/sara_happy.png' image sara angry = 'images/sara/sara_angry.png' define bob = Character('Bob') define sara = Character('Sara') label start: show bob angry...
by DannyGMaster
Thu Jun 22, 2017 12:27 pm
Forum: Ren'Py Questions and Announcements
Topic: How do I put items in a custom choice screen?[SOLVED]
Replies: 21
Views: 2907

Re: How do I put items in a custom choice screen?

I think I got it, kinda. I modified Alex's code a little: screen my_scr(places): frame: pos (0.1, 0.2) xysize(200,400) vbox: text "Places:" null height 5 for place in places: button: text place["place"] action [Show("img_scr", i=place["img"]), Show("my_2_...
by DannyGMaster
Thu Jun 22, 2017 9:45 am
Forum: Ren'Py Questions and Announcements
Topic: How do I put items in a custom choice screen?[SOLVED]
Replies: 21
Views: 2907

Re: How do I put items in a custom choice screen?

renpy.get_screen worked perfectly! Here's what happened when I tried to do multiple dialogues. I'm sorry if I made that unclear, but when I tried to use "res": jump gobbledegook it returned with a syntax error. Some of the responses need to have multiple dialogues, some need character spr...
by DannyGMaster
Thu Jun 22, 2017 9:35 am
Forum: Ren'Py Questions and Announcements
Topic: Creating a Ace Attorney like dialogue "battle"
Replies: 5
Views: 1252

Re: Creating a Ace Attorney like dialogue "battle"

Thanks for pointing out my mistake. I will try and add more comments explaining how it works
in the future, but for now I'm glad I could point you in the right direction, I'll be looking forward to
what you make of it.
by DannyGMaster
Thu Jun 22, 2017 8:38 am
Forum: Ren'Py Questions and Announcements
Topic: How do I put items in a custom choice screen?[SOLVED]
Replies: 21
Views: 2907

Re: How do I put items in a custom choice screen?

1. Is there a way to hide all the screens using a button? When I hit one of the buttons like "Listen" the textbox just appears overtop the menus. Can they be hidden when the button is clicked, and then shown again once the little bit of dialogue is over? Yes, you can have the screen hide ...
by DannyGMaster
Wed Jun 21, 2017 4:09 pm
Forum: Ren'Py Questions and Announcements
Topic: Creating a Ace Attorney like dialogue "battle"
Replies: 5
Views: 1252

Re: Creating a Ace Attorney like dialogue "battle"

Well after thinking about it and playing a little with my own test code, I've concluded that a good way of storing and accessing the facts Inventory is by making it using Python code. OK, this is what I have so far. I haven't tested it thoroughly so it can have errors, but hopefully you will underst...
by DannyGMaster
Wed Jun 21, 2017 3:48 pm
Forum: Ren'Py Questions and Announcements
Topic: How do I put items in a custom choice screen?[SOLVED]
Replies: 21
Views: 2907

Re: How do I put items in a custom choice screen?

I see, I have played Devil Survivor so I understand what you want. The sub location list can be another screen, with a different set of actions for each button. For each button action in location_list, you could use renpy.show_screen to have that corresponding screen appear on the right. You would n...
by DannyGMaster
Wed Jun 21, 2017 2:54 pm
Forum: Ren'Py Questions and Announcements
Topic: Creating a Ace Attorney like dialogue "battle"
Replies: 5
Views: 1252

Re: Creating a Ace Attorney like dialogue "battle"

I'm very interested in this kind of game, I'm a big fan of Ace Attorney after all. I tried your script and it's pretty interesting, I would love to see it implemented, although at the time it is a little hard to read, jumping from nvl mode to adv mode, I still liked it, it has a lot of potential. As...
by DannyGMaster
Wed Jun 21, 2017 12:22 pm
Forum: Ren'Py Questions and Announcements
Topic: How do I put items in a custom choice screen?[SOLVED]
Replies: 21
Views: 2907

Re: How do I put items in a custom choice screen?

I'm trying to do something simmilar for my game. As for suplying the items it could be as simple as doing it when you show the screen: default my_locations = ['Park', 'Library', 'School', 'Home'] label start: show screen location_list(my_locations) But you also must create a function to determine wh...
by DannyGMaster
Wed Jun 21, 2017 11:15 am
Forum: Ren'Py Questions and Announcements
Topic: Highlighted background on choice buttons[SOLVED]
Replies: 5
Views: 1716

Re: Highlighted background on choice buttons

Well, I suggested imagebuttons because I think it's the easiest way to do it. I know you can generate images with pygame using pure code, and Ren'py can use pygame code, but I don't know if that code can be used for screens in place of image files, in theory it should be possible but you would proba...
by DannyGMaster
Wed Jun 21, 2017 8:54 am
Forum: Ren'Py Questions and Announcements
Topic: Highlighted background on choice buttons[SOLVED]
Replies: 5
Views: 1716

Re: Highlighted background on choice buttons

I assume you want to make a completely new screen that behaves this way? You could set it up with auto imagebuttons. screen my_screen(): vbox xalign .5 yalign .5: imagebutton auto "gui/my_button_%s.png" action MyAction() In your gui folder, you need to add a set of buttons with that name b...
by DannyGMaster
Tue Jun 20, 2017 4:32 pm
Forum: Ren'Py Questions and Announcements
Topic: Python code in screen causing side-effects? [SOLVED]
Replies: 2
Views: 516

Re: Python code in screen causing side-effects?

Andy_kl wrote:Use on "show" action Play(channel, file, selected=None, **kwargs)
Oh!, I didn't know 'on' could be used that way, thanks :D !