Search found 11 matches

by Roboduck
Tue May 03, 2016 2:32 pm
Forum: Creator Discussion
Topic: Minigames
Replies: 4
Views: 645

Minigames

What's your opinion on including minigames in VNs? Do you think they can add something to a game or are they distracting from the VN experience? I've been thinking back and forth about including them when it's story-appropriate, like a little jigsaw-puzzle after picking a ripped-up letter from a bin...
by Roboduck
Wed Apr 13, 2016 6:14 am
Forum: Ren'Py Questions and Announcements
Topic: Call statement & arguement question[SOLVED]
Replies: 8
Views: 1169

Re: Call statement question

Can you call the result of a variable? I'm not sure. If not, then the only solution I could offer would be to call a long chain of if statements, if the variable is X, call Y, etc. It definitely works for renpy.call_in_new_context(label_variable) But I just realized, it should be $renpy.call(newlab...
by Roboduck
Wed Apr 13, 2016 4:56 am
Forum: Ren'Py Questions and Announcements
Topic: Call statement & arguement question[SOLVED]
Replies: 8
Views: 1169

Re: Call statement question

I can't guarantee this will work as I have no way of testing it atm but I would try it this way: init python: def Test(namevar,topicvar): return (namevar+'_'+topicvar) [...] "no": [...] $newlabel = Test('joe','fishing') $renpy.call(newlabel) [...] label joe_fishing: "Fishing sucks." return
by Roboduck
Mon Apr 11, 2016 7:45 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Screen buttons and list functions
Replies: 6
Views: 1934

Re: [SOLVED] Screen buttons and list functions

Ah, now I got it. Thanks a bundle, knowing that will come in real handy :D
by Roboduck
Mon Apr 11, 2016 6:52 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Screen buttons and list functions
Replies: 6
Views: 1934

Re: Screen buttons and list functions

Okay, that's good to know, even if I can't say I fully understand just why my button became insensitive in this case.

Thanks for the help :)
by Roboduck
Mon Apr 11, 2016 5:48 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Screen buttons and list functions
Replies: 6
Views: 1934

Re: Screen buttons and list functions

...oh. Well, that's straightforward :oops: So, did I understand the doku correctly, I'd use it like this? ...action [...Function(inventory.append,item)...] Also, out of curiosity, does that mean a button action is only performed if every single function can be executed? Even if AddToSet() checks for...
by Roboduck
Mon Apr 11, 2016 5:14 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Screen buttons and list functions
Replies: 6
Views: 1934

[SOLVED] Screen buttons and list functions

I have a question or two about imagebuttons and how to use them to add to or remove things from lists. I want to make a nice interface for picking up items from containers that the player can access from the RPG overworld. Every container has a list of items as an inventory. If the player sprite int...
by Roboduck
Wed Mar 23, 2016 3:25 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Positioning DynamicDisplayable in LiveComposite
Replies: 11
Views: 832

Re: Positioning DynamicDisplayable in LiveComposite

I had trouble with using LiveCrop and LiveComposite together too. What solved it for me was to use im.Crop instead of LiveCrop and im.Composite instead of LiveComposite.
by Roboduck
Fri Mar 11, 2016 11:49 am
Forum: Ren'Py Questions and Announcements
Topic: Transforming composited Image with im.AlphaMask [SOLVED]
Replies: 4
Views: 977

Re: Transforming composited Image with im.AlphaMask

It worked! I replaced bigmask = Solid((0,0,0,255)) with bigmask = im.Crop('black.jpg',0,0,self.rect.width,self.rect.height) and mask = LiveCrop((xdiff,0,maskrect.width,maskrect.height),mask) with mask = im.Crop(mask,xdiff,0,maskrect.width,maskrect.height) I'll have to exchange black.jpg for a white....
by Roboduck
Fri Mar 11, 2016 8:37 am
Forum: Ren'Py Questions and Announcements
Topic: Transforming composited Image with im.AlphaMask [SOLVED]
Replies: 4
Views: 977

Re: Transforming composited Image with im.AlphaMask

im. S cale with an uppercase. Ergh, oops. That's what I get for posting the code I wrote on this computer, not the one I tested and checked for typos... :oops: I also recall that we had an alpha mask of a kind that worked with all displayable. I tried using that, too. But unless I misread the docum...
by Roboduck
Fri Mar 11, 2016 4:53 am
Forum: Ren'Py Questions and Announcements
Topic: Transforming composited Image with im.AlphaMask [SOLVED]
Replies: 4
Views: 977

Transforming composited Image with im.AlphaMask [SOLVED]

Hi all. I'm building an RPG overworld engine and I'm playing around with light and shadow effects. What I want to do is to have a semi-translucent displayable rendered on top of the ground, for example like light falling in from a window above. When a sprite walks into the area I want there to be a ...