Search found 1349 matches

by Remix
Sun Feb 16, 2020 12:33 pm
Forum: Ren'Py Questions and Announcements
Topic: Simultaneous triggering of all effects
Replies: 2
Views: 126

Re: Simultaneous triggering of all effects

with sleva_p is a transition which will block progress until it is complete You could try re-coding it as a transform (which can have a line like :: "next_image" with dissolve :: and not block other things) or perhaps try dict transitions with a different layer... https://renpy.org/doc/html/transiti...
by Remix
Fri Feb 14, 2020 10:40 pm
Forum: Ren'Py Questions and Announcements
Topic: Question - How read all character declared for make a drop-down menu on automatic script [SOLVED]
Replies: 10
Views: 396

Re: Question - How read all character declared for make a drop-down menu on automatic script

iteritems is BAD It is Python < 3 only (even though 2.7 etc supports .items() ) and it is a method, not an attribute and it is a method of dictionaries not lists... The drop-in Character function internally creates a list named 'all_character' Much like adding a line saying 'default all_characters =...
by Remix
Fri Feb 14, 2020 5:45 pm
Forum: Ren'Py Questions and Announcements
Topic: Will config.replace_text affect performance?
Replies: 4
Views: 134

Re: Will config.replace_text affect performance?

1) It is only ran on each piece of text one at a time 2) Those pieces of text are generally pretty short (even in triple quoted string soliloquies) 3) Dialogue progression in a VN generally leaves loads of time for the engine to perform operations like this... It's not like we have to do it between ...
by Remix
Tue Feb 11, 2020 9:09 pm
Forum: Ren'Py Questions and Announcements
Topic: Locations in their own file
Replies: 2
Views: 123

Re: Locations in their own file

Personal preference.

Some people use a file per character, some a file per chapter, some use a file per quest...

Having some sort of grouping is nice though... An 'all these type labels go in this file' kind of thing
by Remix
Sat Feb 08, 2020 7:26 am
Forum: Ren'Py Questions and Announcements
Topic: Question - How read all character declared for make a drop-down menu on automatic script [SOLVED]
Replies: 10
Views: 396

Re: Question - How read all character declared for make a drop-down menu on automatic script

As Character() is in the renpy.character namespace, you could just overload that name in the global and then reference the namespace inside it... init python: def Character(*args, **kwargs): char = renpy.character.Character(*args, **kwargs) try: if not char in store.all_characters: store.all_charact...
by Remix
Thu Feb 06, 2020 8:53 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] "Unknown keyword arguments: what, who" But... it's right there.
Replies: 10
Views: 418

Re: "Unknown keyword arguments: what, who" But... it's right there.

Do any of the other files redefine screen say ?

If not, do a project wide search for the term "who" and try to think whether it makes sense in modern Ren'Py. Some function, method or screen is being passed those keywords when it doesn't expect them...
by Remix
Wed Feb 05, 2020 7:34 pm
Forum: Ren'Py Questions and Announcements
Topic: Setting heights of sprites
Replies: 2
Views: 210

Re: Setting heights of sprites

Are you initially just doing something like 'show eileen' ? That in itself will set certain values as it uses a base transform to begin with. You can adjust it by tweaking: define config.default_transform = ... ### The default transform here is center, which is (xpos 0.5 xanchor 0.5 ypos 1.0 yanchor...
by Remix
Tue Jan 28, 2020 9:36 am
Forum: Ren'Py Questions and Announcements
Topic: Conditional imagebutton [SOLVED]
Replies: 5
Views: 259

Re: Conditional imagebutton

What is time? A set or an int?

Code: Select all

default time = 0

screen a():
    imagebutton auto "phonewatch_%s.png" action If(time <= 3, SetVariable('time', time+1), Jump("sallybed")) align (0.01,0.04)
Maybe?
by Remix
Fri Jan 24, 2020 7:54 am
Forum: Ren'Py Questions and Announcements
Topic: Pixellate in Transform?
Replies: 2
Views: 233

Re: Pixellate in Transform?

You can use 'with' in transforms, just you have to tell it the displayable to transition to (and maybe back to) transform pixellate_to_new( new=Null(), old=Null() ): on show: new with pixellate on hide: old with pixellate ## show "old" at pixellate_to_new("images/new.png", "old") There are likely wa...
by Remix
Fri Jan 24, 2020 7:46 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] TypeError: 'type' object has no attribute '_getitem_'
Replies: 9
Views: 303

Re: TypeError: 'type' object has no attribute '_getitem_'

I would look at a few more screen Actions, including the If() action. You might find Ren'Py supports what you are trying to do: https://renpy.org/doc/html/screen_actions.html action If( selected_item == test_item, # <-- the condition (this is evaluated when the screen loads btw) ToggleVariable( "var...
by Remix
Thu Jan 23, 2020 9:00 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] TypeError: 'type' object has no attribute '_getitem_'
Replies: 9
Views: 303

Re: TypeError: 'type' object has no attribute '_getitem_'

Now you've made testItem into a class rather than a function... So when you do the button action it invokes the call action of the class I would advise against extending the Action class unless you understand what you are doing... just use a function instead It's nice that you try and have learned t...
by Remix
Thu Jan 23, 2020 6:32 pm
Forum: Ren'Py Questions and Announcements
Topic: A layer between Background and Sprite
Replies: 5
Views: 262

Re: A layer between Background and Sprite

tag in a screen just makes it part of a group of screens where just one can show... You likely want define config.layers = ['bg', 'under', 'master', 'transient', 'screens', 'overlay'] init python: config.tag_layer['bg'] = 'bg' # all images with the tag 'bg' are put on layer 'bg' config.tag_layer['lo...
by Remix
Thu Jan 23, 2020 3:32 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] TypeError: 'type' object has no attribute '_getitem_'
Replies: 9
Views: 303

Re: TypeError: 'type' object has no attribute '_getitem_'

Code: Select all

    action Function( testItem, selected_item, iHair, invbgopen, True )
    ## Function( name_of_function, *any_arguments, **any_keyword_arguments ) # no () inside it, no [], just a class Action instance setup
by Remix
Thu Jan 23, 2020 3:24 pm
Forum: Ren'Py Questions and Announcements
Topic: A layer between Background and Sprite
Replies: 5
Views: 262

Re: A layer between Background and Sprite

Code: Select all

init python:

    config.tag_layer['bg'] = 'bg' # all images with the tag 'bg' are put on layer 'bg'
    config.tag_layer['eileen'] = 'master' # not really needed as default for show is master

label start:
 
    scene bg forest # goes on layer 'bg' due to using tag bg
by Remix
Wed Jan 22, 2020 5:55 pm
Forum: Ren'Py Questions and Announcements
Topic: Game Using Incorrect Sprite File After File Replacement
Replies: 2
Views: 238

Re: Game Using Incorrect Sprite File After File Replacement

Suggest moving the oversized ones out of your game folder entirely... You would not want to bundle them unused in a game anyway Ren'Py's automatic image definition system ignores folders (unless you tell it otherwise) so it will define the first image with any specific name that it finds and then ig...