Search found 84 matches

by Potato0095
Thu Mar 05, 2020 2:40 am
Forum: Ren'Py Questions and Announcements
Topic: Time/day system
Replies: 21
Views: 2246

Re: Time/day system

Did you misspell anything, or didn't put anything in the right part of the document? Check if your "if self.hours > 23:" statement is inside the "def render". You don't need to create one, use the one already in the code. Check your indentation, your code should be like this: def...
by Potato0095
Thu Mar 05, 2020 2:27 am
Forum: Ren'Py Questions and Announcements
Topic: How to make a custom frame
Replies: 5
Views: 592

Re: How to make a custom frame

So there isn't a way to set up an image so I can do like Frame: Stuff that I want to have the image automatically fit behind it? This is theoretical, as I didn't try to do a custom frame like that, but I don't think so. My knowledge of Ren'Py is rather small, and unless you do a style for this spec...
by Potato0095
Wed Mar 04, 2020 1:50 pm
Forum: Ren'Py Questions and Announcements
Topic: How to make a custom frame
Replies: 5
Views: 592

Re: How to make a custom frame

Hm... can't you do what you want with textbuttons, imagebuttons and images inside a screen, hbox, and vbox? You could use a screen, image, and mess with the numbers to get them where you want inside a custom image. I think it'll look quite the same.
by Potato0095
Wed Mar 04, 2020 3:25 am
Forum: Ren'Py Questions and Announcements
Topic: Time/day system
Replies: 21
Views: 2246

Re: Time/day system

Ok, thanks :) :) I have a problem using your code, because on the clock system that I'm using, once h > than 23 it resets back to 0. Something like: if h > 23: h = h%24 So I can't do like (48/24 + 1) for day 3, and I get stuck on day 2 Oh, you're using trooper6's code, I kind of forgot about that, ...
by Potato0095
Tue Mar 03, 2020 3:23 am
Forum: Ren'Py Questions and Announcements
Topic: Time/day system
Replies: 21
Views: 2246

Re: Time/day system

Thanks for the answer Potato0095 and trooper6 Right now I'm trying something like that under, but that doesn't work :( self.days = 1 #This is the day I want to start with @property def day(self): return self.days #This method gives me the day def advance(self, i=0): if h == 0: # H stands for hours ...
by Potato0095
Tue Mar 03, 2020 3:02 am
Forum: Ren'Py Questions and Announcements
Topic: Time/day system
Replies: 21
Views: 2246

Re: Time/day system

First, I want to apologize. My previous logic had a fault. It didn't give the int = day, it was giving "yesterday", so you would need to use: day = int(a / 24) + 1 Now, onto the second matter. It's untested, but you could work something with this if needed: init python: import renpy.store ...
by Potato0095
Tue Mar 03, 2020 2:40 am
Forum: Ren'Py Questions and Announcements
Topic: For loop inside ATL
Replies: 4
Views: 443

Re: For loop inside ATL

Thanks, it worked like a charm. I needed a very specific set of 3.2 "0.1 linear" though, so I followed the logic and it became like this: transform vibrate: #linear 0 anchor 0, 0 #linear 0 pos 1140,5 parallel: linear 0.2 zoom 1.1 pause(1.5) linear 0.2 zoom 1.0 pause(1.3) repeat parallel: r...
by Potato0095
Mon Mar 02, 2020 3:18 pm
Forum: Ren'Py Questions and Announcements
Topic: For loop inside ATL
Replies: 4
Views: 443

Re: For loop inside ATL

Yeah, I know about that, but that's the thing, it's not on repeat, it's on the same "linear 0.1 rotate x" statements. I want to reduce this: linear 0.1 rotate 10 linear 0.1 rotate -10 linear 0.1 rotate 10 linear 0.1 rotate -10 linear 0.1 rotate 10 linear 0.1 rotate -10 linear 0.1 rotate 10...
by Potato0095
Mon Mar 02, 2020 2:41 pm
Forum: Ren'Py Questions and Announcements
Topic: For loop inside ATL
Replies: 4
Views: 443

For loop inside ATL

I want to make a vibration transform for an icon, the problem's purely esthetic though, the code works fine as is (it could optimize some PCs, I don't rightly now). As said in the title, I want to make a "for" loop inside ATL so I can keep track of how many times the code has looped and th...
by Potato0095
Mon Mar 02, 2020 9:01 am
Forum: Ren'Py Questions and Announcements
Topic: Check what screen is currently shown
Replies: 0
Views: 284

Check what screen is currently shown

I want to check what screen the game is at right now, or, at least, the last shown. I know about the renpy.get_screen(), but it checks if a specific screen is currently shown, I wanna check WHICH screen is at the top. For example, I'm currently working on a phone system of mine. The screen is shown ...
by Potato0095
Mon Mar 02, 2020 8:47 am
Forum: Ren'Py Questions and Announcements
Topic: Having issues with hovering over an imagebutton, please help!
Replies: 6
Views: 659

Re: Having issues with hovering over an imagebutton, please help!

Hm... Shouldn't the idle state overlap the hover state? I would try to workaround calling another label (that being the idle state) before the return on "doorHover". I don't know exactly what you're trying to achieve, and I don't think I could solve even if I knew, I don't have the skills ...
by Potato0095
Mon Mar 02, 2020 8:22 am
Forum: Ren'Py Questions and Announcements
Topic: Time/day system
Replies: 21
Views: 2246

Re: Time/day system

You could use a division floor rounded number + 1 as the day counter. It will depend on your code, however, the logic is the same nonetheless. python: a = 0 # "a" being the number of hours, you'll set this variable at any moment inside your code. day = int(a / 24) + 1 # you'll get a float ...
by Potato0095
Mon Mar 02, 2020 4:21 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] ATL inside Hide()
Replies: 2
Views: 351

Re: ATL inside Hide()

Try to use an "on hide" clause in the transform itself. This is an example. transform notify_appear: on show: alpha 0 linear .25 alpha 1.0 on hide: linear .5 alpha 0.0 Heh, it worked with a few adjustments. It simply hid the images at first, not the screen itself, which is what I need (I ...
by Potato0095
Sat Feb 29, 2020 12:47 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] ATL inside Hide()
Replies: 2
Views: 351

[Solved] ATL inside Hide()

I'm trying to do a phone animation, click on a imagebutton, show screen, click in another imagebutton, hide screen. The problem is: I can't find a way to use action Hide("phone") with ATL. Should I continue with this and try to do the animations, or should I simply re-do from scrath withou...
by Potato0095
Sun Jan 20, 2019 7:03 pm
Forum: Ren'Py Cookbook
Topic: Basic Message System
Replies: 93
Views: 58625

Re: Basic Message System

It seems that 6.99 accepted "screen choice(items)" inside "screen choice". Ren'Py 7 doesn't. If anyone is willing to debug the code... screen choice: if reply_screen or draft_screen: # this is the menu for message replies and drafts frame: style_group "mailbox" vbox: la...