Search found 286 matches
- Tue Oct 17, 2017 11:01 am
- Forum: Ren'Py Questions and Announcements
- Topic: Get the name of the showing image ?
- Replies: 10
- Views: 3414
Re: Get the name of the showing image ?
Hmm, that's strange: I copied - pasted the code, and every answer I get is "None" even if the image is showing. That's odd, I just tried it in a new project and it seems to work fine. EDIT: Wait, no, you're right, that seems to happen when the image has more than one attribute. Looks like...
- Tue Oct 17, 2017 10:05 am
- Forum: Ren'Py Questions and Announcements
- Topic: Get the name of the showing image ?
- Replies: 10
- Views: 3414
Re: Get the name of the showing image ?
You can modify the function to suit your needs, or make another function where you use the previous one as a base, and then do any operation you need with it. For getting a particular image you would do something like this: init python: # I updated the function so it takes a layer parameter, so you ...
- Mon Oct 16, 2017 2:01 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Get the name of the showing image ?
- Replies: 10
- Views: 3414
Re: Get the name of the showing image ?
I sort of wrote a function that returns a list of image tags currently showing along with their attributes on a string, I don't know if it's what you need but it can be changed later. I tried to explain what it does step by step but if you need more help feel free to ask. image eileen happy = "...
- Fri Oct 13, 2017 3:11 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Character dissolve running in background?
- Replies: 9
- Views: 2990
Re: Character dissolve running in background?
You can use renpy.show() , show command's python equivalent to pass arguments to it. show eileen happy Is equivalent to: $ renpy.show("eileen happy") You could also write a function to automate the process as you mention, probably like this: image eileen = "eileen.png" image eile...
Re: Guestbook
A bit late to sign the guestbook, but oh well... Hey all, RicharDann here. I really like videogames, specially visual novels thanks to the simple yet engaging mechanics and overall I've enjoyed every single one of them I've been able to play, I came to know Ren'Py thanks to Katawa Shoujo, a game tha...
- Thu Oct 12, 2017 8:48 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Inventory system for Multiple Characters
- Replies: 1
- Views: 447
Re: Inventory system for Multiple Characters
Nevermind I used dictionaries in the end and it seems to be working, dunno why I didn't think of that earlier since I recently worked with them. Also I found a tutorial in the cookbook basically on this so I'll probably end up relying on it if anything unexpected happens.
Thanks anyway.
Thanks anyway.
- Wed Oct 11, 2017 3:16 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Displaying Images After Choices
- Replies: 2
- Views: 469
Re: Displaying Images After Choices
Do you want the image to quickly flash when the player hovers on the choice, or after the player already picked the choice? Either way you could make a transform that shows the image and hides it after a short time, depending on wich way you want to show it you would need to use different code. Here...
- Wed Oct 11, 2017 1:58 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Inventory system for Multiple Characters
- Replies: 1
- Views: 447
[Solved] Inventory system for Multiple Characters
So I have different POV characters in my story and I want to have each of them manage their own set of items and clothes. And at some points I want them to be able to exchange items. So I figured classes where a good way to represent each character and their inventory. However, I want each inventory...
- Wed Oct 11, 2017 8:51 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Problem getting mouse position in a screen
- Replies: 5
- Views: 2436
Re: [SOLVED]Problem getting mouse position in a screen
I realized this just yesterday, hadn't come up with a solution yet but timer looks like a fine solution, I didn't know it could be used like that, it works wonderfully. Only problem left is that the animation doesn't show up above buttons and other clickable areas, but that is to be expected since p...
- Mon Oct 09, 2017 2:01 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Problem getting mouse position in a screen
- Replies: 5
- Views: 2436
Re: [SOLVED]Problem getting mouse position in a screen
UPDATE: Oddly enough, when I added the show animation code to the key statement, getting the mouse pos started slowing down again unless I double clicked. I started tinkering with it once again and I stumbled upon what seems to be a solution: adding a mouse_up event along with the mouse_down seems ...
- Mon Oct 09, 2017 12:14 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved]bar questions (love meter)
- Replies: 1
- Views: 610
- Mon Oct 09, 2017 11:31 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Problem getting mouse position in a screen
- Replies: 5
- Views: 2436
- Mon Oct 09, 2017 9:43 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Problem getting mouse position in a screen
- Replies: 5
- Views: 2436
[SOLVED]Problem getting mouse position in a screen
I'm trying to make a screen where I need to get mouse position when the player clicks the mouse (or touches the screen if on Android), to then show a small click animation on that position. Browsing through the documentation I found renpy.get_mouse_pos() and it seems to be what I need. I made a scre...
- Fri Oct 06, 2017 8:58 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Imagebutton with text?
- Replies: 8
- Views: 4529
Re: [SOLVED] Imagebutton with text?
xavimat, you're totally right! At first I thought button was a kind of hotspot like on imagemaps I didn't imagine it could accept children, this will be indeed very useful, thank you!
- Fri Oct 06, 2017 1:00 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to move menu buttons?
- Replies: 26
- Views: 4193
Re: How to move menu buttons?
Well now I'm totally confused. There might be a problem with the pictures (but then Ren'Py wouldn't probably show them in the first place). Why don't you try creating a new project and star over from there? Don't change anything except the textbuttons and place them exactly where they were by defaul...