Search found 642 matches

by Milkymalk
Tue May 29, 2018 12:11 pm
Forum: Ren'Py Questions and Announcements
Topic: Image scaling / zooming
Replies: 10
Views: 585

Re: Image scaling / zooming

Using At got me an exception: File "game/inventory.rpy", line 385, in keywords imagebutton idle im.Composite((50,50), (0,0), "images/interface/emptyinv.png", (0,0), At("images/items/"+i.inv.slot[j].getimage('icon')[0]+".png", itemzoom(0.5))) action [SensitiveIf(renpy.get_screen("waitforevent")), Fun...
by Milkymalk
Tue May 29, 2018 9:33 am
Forum: Ren'Py Questions and Announcements
Topic: Image scaling / zooming
Replies: 10
Views: 585

Image scaling / zooming

Currently I have three separate images for each item: One lying on the ground, one in the inventory, and one closeup view. As many items are small enough that the ground image and the inventory image can be the same, or large enough that the closeup image and the ground image can be the same, or the...
by Milkymalk
Mon May 28, 2018 8:50 pm
Forum: Asset Creation: Art
Topic: Stats/Inventory Screen Critique
Replies: 5
Views: 765

Re: Stats/Inventory Screen Critique

I was considering that too, but that's where level/xp are going, so it would look too cramped. Maybe I can squeeze it in, as I'm not too happy with clicking the portrait. Another option is to put the button just right of the first inventory row. It would stand out and be reachable, but it feels like...
by Milkymalk
Mon May 28, 2018 5:41 pm
Forum: Ren'Py Questions and Announcements
Topic: How do I use $ renpy.unlink_save
Replies: 12
Views: 793

Re: How do I use $ renpy.unlink_save

Is this another one of those four wall breaking game that every body's trying to do which are actually anti-player? Don't be so harsh. A lot of people who played DDLC were so impressed by it that they found their way here, it's only natural that many of them want to do something similar. While I ca...
by Milkymalk
Mon May 28, 2018 9:30 am
Forum: Asset Creation: Art
Topic: Stats/Inventory Screen Critique
Replies: 5
Views: 765

Stats/Inventory Screen Critique

This is the inventory screen for my rpg game. Ignore the actual assets for a second, these are almost all CC placeholders. This isn't supposed to be pretty for now. I'm asking about the layout and area management: Do you think this is easy to use and to read? Is it too crowded? What would you want t...
by Milkymalk
Sun May 27, 2018 4:50 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] Timer action makes UDD flicker
Replies: 11
Views: 550

Re: [solved] Timer action makes UDD flicker

Yes, I found that one in the documentation after it was mentioned in another thread where I asked something. But thank you :) I am actually experiencing a certain slowdown in the ticking when a lot of images are loading for the screens, but that's okay. This only happens when the player makes a lot ...
by Milkymalk
Sun May 27, 2018 9:40 am
Forum: Ren'Py Questions and Announcements
Topic: [solved] Timer action makes UDD flicker
Replies: 11
Views: 550

Re: [probably solved] Timer action makes UDD flicker

All right, then that's what I will do :) Thanks a lot for your help!
by Milkymalk
Sun May 27, 2018 8:47 am
Forum: Ren'Py Questions and Announcements
Topic: [solved] Timer action makes UDD flicker
Replies: 11
Views: 550

Re: [probably solved] Timer action makes UDD flicker

Good point. Though the main reason for the renpy.restart_interaction is that without it, the screens don't refresh often enough. I tried renpy.force_complete_redraw, but this did absolutely nothing (probably doesn't re-render screens). The displayable itself isn't the problem anymore. I would need t...
by Milkymalk
Sun May 27, 2018 7:33 am
Forum: Ren'Py Questions and Announcements
Topic: [solved] Timer action makes UDD flicker
Replies: 11
Views: 550

Re: Timer action makes UDD flicker

I applied a mix of your and my methods and it worked. At first I used this: init python: renpy.config.periodic_callbacks.append( execute_gametick ) config.per_frame_screens.append( "my_animated_screen" ) But it made the refresh rate jerky (about 4 refreshs per second, a test bar jumped instead of de...
by Milkymalk
Sun May 27, 2018 5:59 am
Forum: Ren'Py Questions and Announcements
Topic: error while implementing inventory
Replies: 7
Views: 412

Re: error while implementing inventory

Almost. def __init__(self, money=200): self.money = money self.items = [] ##ABOVE IS INITIAL STUFF?? The variable in the def header and the actual self. variable don't have to have the same name, but I like to do that to avoid confusion. What happens: When you call "inventory = Inventory()", the loc...
by Milkymalk
Sat May 26, 2018 8:48 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] Timer action makes UDD flicker
Replies: 11
Views: 550

Re: Timer action makes UDD flicker

Thank you for the suggestion, as always :) It's just that this would interfere with game pauses, as the core time would keep passing while the game is on pause. But it's good to know this exists. I will try the screen updating after I get some sleep, thank you. This sounds like the solution to my pr...
by Milkymalk
Sat May 26, 2018 8:20 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] Timer action makes UDD flicker
Replies: 11
Views: 550

Re: Timer action makes UDD flicker

I actually need to redraw everything (or at the very least, a few screens) each tick as the game changes stuff in real-time. The callback is a great idea (again, I learned something useful exists), but skips this important step. Curiously, even if everything is redrawn, only the one UDD flickers. Ma...
by Milkymalk
Sat May 26, 2018 8:11 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Syntax for menu error, please help
Replies: 13
Views: 477

Re: Syntax for menu error, please help

You are mixing renpy script (the menu) with python. You can only use menus inside regular renpy script: label askforname: menu: "Yes": pass # necessary because empty blocks are not allowed "No": $ old_name = current_name $ current_name = renpy.input("What do you want to change the name to?") $ curre...
by Milkymalk
Sat May 26, 2018 7:56 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] Timer action makes UDD flicker
Replies: 11
Views: 550

[solved] Timer action makes UDD flicker

I'm totally stumped. I have this UDD that displays a small image following the mouse pointer. This worked fine and without problems: class MouseItem(renpy.Displayable): def __init__(self, id): super(MouseItem, self).__init__() self.child = Image("images/items/"+id+"_i.png") mp = renpy.get_mouse_pos(...
by Milkymalk
Fri May 25, 2018 9:15 pm
Forum: Ren'Py Questions and Announcements
Topic: "deactivate" screens (modal? z-order?)
Replies: 4
Views: 338

Re: "deactivate" screens (modal? z-order?)

The game is not a typical visual novel. Instead of having narration and putting interfaces over them when needed, it has gameplay using the interfaces and puts narration over them when needed. That's why hiding the screens/buttons is not the way I want to do it.