Search found 80 matches

by Chekhov
Sat Sep 14, 2019 3:57 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved]'NoneType' object is not callable - Where am I calling a NoneType!?!?
Replies: 2
Views: 85

Re: 'NoneType' object is not callable - Where am I calling a NoneType!?!?

action Function(update_char(active_char)) should be action Function(update_char,active_char) In first case Function get result of update_char(active_char) as callable, which is None and as result NoneType is not callable error. Ahh that fixes the error. It's not quite acting as intended though; the...
by Chekhov
Sat Sep 14, 2019 2:50 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved]'NoneType' object is not callable - Where am I calling a NoneType!?!?
Replies: 2
Views: 85

[Solved]'NoneType' object is not callable - Where am I calling a NoneType!?!?

The code was functioning exactly as expected, until I added the action to this button (and the function that it calls). I am in the testing phase of trying some new things, so I have a couple of interactive elements (like this button) as well as a "continue" button at the bottom, which cycles betwee...
by Chekhov
Fri Sep 13, 2019 4:59 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Showing variables correctly in an action - string
Replies: 4
Views: 80

Re: Showing variables correctly in an action - string

Try action Notify(_("You clicked tile {}, {}").format(x,y)) edit: I didn't see your response before me XD The two for loops create an isometric grid of tiles. I don't know how to correctly show the variables inside the string on the last line. define boardsize = [5,8] define showcoordinates = False...
by Chekhov
Fri Sep 13, 2019 2:38 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Showing variables correctly in an action - string
Replies: 4
Views: 80

[Solved]Showing variables correctly in an action - string

The two for loops create an isometric grid of tiles. I don't know how to correctly show the variables inside the string on the last line. define boardsize = [5,8] define showcoordinates = False screen Gameboard(): fixed: xpos 300 ypos 400 for y in range(boardsize[0]): for x in range(boardsize[1]): f...
by Chekhov
Fri Sep 13, 2019 4:49 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Is it possible to use a FOR loop to display tiles in screen language?
Replies: 6
Views: 125

Re: Is it possible to use a FOR loop to display tiles in screen language?

I would advise calculating both the x and y for each image individually and just have all of those as separate items in a single fixed. A basic example that just does a checkerboard of 50x50 squares... screen Gameboard(): fixed: xpos 200 ypos 100 for y in xrange(8): for x in xrange(8): add Solid('#...
by Chekhov
Fri Sep 13, 2019 3:59 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Is it possible to use a FOR loop to display tiles in screen language?
Replies: 6
Views: 125

Re: Is it possible to use a FOR loop to display tiles in screen language?

I can't use grids for it as I'm doing some other manipulation that precludes it (for example, it's more isometric rather than perfectly aligned squares). I just gave a code example to show the mismatch of trying to use screen language inside a python block; it's a common problem I run into and I thi...
by Chekhov
Fri Sep 13, 2019 3:35 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Is it possible to use a FOR loop to display tiles in screen language?
Replies: 6
Views: 125

[Solved] Is it possible to use a FOR loop to display tiles in screen language?

Let's say I wanted to create a chessboard inside the screen language, and for whatever reason, I wanted to display each tile separately rather than a pre-created background that shows a chessboard. screen Gameboard(): fixed: xpos 300 ypos 400 python: for y in xrange(8): for x in xrange(8): fixed: xy...
by Chekhov
Fri Sep 13, 2019 3:13 am
Forum: Ren'Py Questions and Announcements
Topic: Do I need to define all the attributes in a class?
Replies: 10
Views: 170

Re: Do I need to define all the attributes in a class?

I'm pretty sure it's a mistake to give the same name to a class as the instance of a class. Then the program might look for the class's might, but the class has no might attribute, it's just the instances that do. So instead of doing: character = Character() use john = Character() You're also making...
by Chekhov
Thu Sep 12, 2019 2:48 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Is it possible to remove the border and background fill of a frame/vbox?
Replies: 4
Views: 118

Re: Is it possible to remove the border and background fill of a frame/vbox?

NVM! I figured it out. Just put the xpos and ypos after the vbox instead. Thanks!
by Chekhov
Thu Sep 12, 2019 2:47 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Is it possible to remove the border and background fill of a frame/vbox?
Replies: 4
Views: 118

Re: Is it possible to remove the border and background fill of a frame/vbox?

trooper6 wrote:
Thu Sep 12, 2019 8:28 am
Also, you don’t need to use a frame at all.
How would I set the position without a frame?
by Chekhov
Thu Sep 12, 2019 5:27 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Is it possible to remove the border and background fill of a frame/vbox?
Replies: 4
Views: 118

[SOLVED] Is it possible to remove the border and background fill of a frame/vbox?

I'm trying some new things out with screens and I'm doing something where I'd like images to overlap, as well as have a 100% transparent part. Essentially I'm building a gameboard out of non-rectangular spaces that fit into each other. Here's an example of two pieces fitting together. However, it al...
by Chekhov
Wed Jul 03, 2019 6:04 pm
Forum: Ren'Py Questions and Announcements
Topic: How do I add an option in the preferences tab to toggle custom cursor?
Replies: 1
Views: 335

Re: How do I add an option in the preferences tab to toggle custom cursor?

I was working with this just before and I'm not sure if I've got the best implementation yet, but this seems to work well: init python: def cursorfunctiontester(): cur_new = ( "cursor-grey.png", 0, 0) return screen cursor_changer: if cur_new != "def_cur": $ config.mouse = {"default" :[cur_new]} else...
by Chekhov
Wed Jul 03, 2019 5:58 pm
Forum: Ren'Py Questions and Announcements
Topic: SOLVED: Is it possible to give an imagemap to an image or for a screen to utilize transitions?
Replies: 4
Views: 394

Re: Is it possible to give an imagemap to an image or for a screen to utilize transitions?

I'm working on a quirky feature, where you can click on items in their hand to try and steal them. Is it possible to add an imagemap to an character image? Conversely, perhaps I should structure all character images as screens so that they can have an imagemap: would there be a way to easily apply ...
by Chekhov
Wed Jul 03, 2019 5:57 pm
Forum: Ren'Py Questions and Announcements
Topic: SOLVED: Is it possible to give an imagemap to an image or for a screen to utilize transitions?
Replies: 4
Views: 394

Re: Is it possible to give an imagemap to an image or for a screen to utilize transitions?

Composite can accept Buttons (if you can write them as python class calls) image kaori_hands = Composite( (280, 635), (0,0), "kaori happy", (30,30), TextButton("Steal", clicked=Notify('stolen') ) ) Time to learn how composites work! Thanks, I was planning to do that next month, but I guess we'll do...
by Chekhov
Tue Jul 02, 2019 6:05 am
Forum: Ren'Py Questions and Announcements
Topic: renpy.input isnt working
Replies: 1
Views: 340

Re: renpy.input isnt working

Can you post the code you are using?

It's hard to give advice when it's not clear what you're doing or what mistakes you might be making.

Also, which editor are you using? Different editors highlight things differently.