Search found 479 matches

by apricotorange
Sun Jun 30, 2013 1:05 pm
Forum: Ren'Py Questions and Announcements
Topic: Non-square imagemaps buttons
Replies: 12
Views: 4787

Re: Non-square imagemaps buttons

"alpha True" won't work in that situation, but focus_mask should still be fine.
by apricotorange
Fri Jun 28, 2013 1:03 pm
Forum: Ren'Py Questions and Announcements
Topic: TypeError: 'int' object is not iterable
Replies: 3
Views: 2195

Re: TypeError: 'int' object is not iterable

Note that the following might be of interest:

Code: Select all

    $foo = range(10)
    "Unshuffled [foo]"
    $renpy.random.shuffle(foo)
    "Shuffled [foo]"
by apricotorange
Fri Jun 28, 2013 11:28 am
Forum: Ren'Py Questions and Announcements
Topic: Question about renpy.jump_out_of_context
Replies: 3
Views: 1099

Re: Question about renpy.jump_out_of_context

Hmm... I'm not really understanding the structure of your game, but if it makes sense to you, then it's probably fine.
by apricotorange
Thu Jun 27, 2013 11:20 pm
Forum: Ren'Py Questions and Announcements
Topic: Question about renpy.jump_out_of_context
Replies: 3
Views: 1099

Re: Question about renpy.jump_out_of_context

Ren'Py maintains a stack of objects called "contexts". Your game normally runs in the primary context. When you call something like ShowMenu or ui.callsinnewcontext, it pushes a secondary context onto the stack (preserving the state of the primary context). renpy.jump_out_of_context pops a...
by apricotorange
Wed Jun 26, 2013 3:09 am
Forum: Ren'Py Questions and Announcements
Topic: if/else choice for random nickname
Replies: 14
Views: 1727

Re: if/else choice for random nickname

Code: Select all

if boyfriendpoints > 5:
    $ boyfriendname = renpy.random.choice(['sweetie', 'honey'])
else:
    $ boyfriendname = 'Tom'
gf "Hello [boyfriendname].  How are you doing?"
by apricotorange
Mon Jun 24, 2013 12:37 pm
Forum: Ren'Py Questions and Announcements
Topic: Main menu Custom Imagemaps don't appear.
Replies: 9
Views: 963

Re: Main menu Custom Imagemaps don't appear.

If you're still seeing the default main menu buttons, you probably left around a definition of "screen main_menu" in screens.rpy in your project. Delete it.
by apricotorange
Mon Jun 24, 2013 12:49 am
Forum: Ren'Py Questions and Announcements
Topic: User Defined Text Tags [Solved]
Replies: 2
Views: 526

Re: User Defined Text Tags

Code: Select all

init -2 python:
    style.narr = Style(style.default)
    style.narr.color = "#99ffff"
    style.narr.italic = True
See http://www.renpy.org/doc/html/style.htm ... med-styles .
by apricotorange
Mon Jun 24, 2013 12:45 am
Forum: Ren'Py Questions and Announcements
Topic: darkening pictures dynamically [SOLVED]
Replies: 9
Views: 3209

Re: darkening pictures dynamically

"image manipulators can only take images or other image manipulators as input."
by apricotorange
Sun Jun 23, 2013 1:16 pm
Forum: Ren'Py Questions and Announcements
Topic: darkening pictures dynamically [SOLVED]
Replies: 9
Views: 3209

Re: darkening pictures dynamically

You're not calling renpy.show() correctly: python: brightness = im.matrix([ 1, 0, 0, 0, .1, 0, 1, 0, 0, .1, 0, 0, 1, 0, .1, 0, 0, 0, 1, 0 ]) renpy.show("foo", what=im.MatrixColor("OvFog.png",brightness))
by apricotorange
Sun Jun 23, 2013 1:07 pm
Forum: Ren'Py Questions and Announcements
Topic: 'ADVCharacter' object has no attribute 'environ'
Replies: 2
Views: 828

Re: 'ADVCharacter' object has no attribute 'environ'

I think the answer is that there's code inside Ren'Py that doesn't expect you to have a character named "os".
by apricotorange
Fri Jun 21, 2013 11:07 pm
Forum: Ren'Py Questions and Announcements
Topic: Inventories... again [solved]
Replies: 15
Views: 1835

Re: Inventories... again

Oh... in case I wasn't clear, the following should work: for i in range(0, len(inventory)): if inventory[i].title() == "soda": textbutton "soda" xalign 0.5 action ShowMenu("soda_menu") elif inventory[i].title() == "snacks": textbutton "snacks" xalign...
by apricotorange
Fri Jun 21, 2013 11:03 pm
Forum: Ren'Py Questions and Announcements
Topic: Fog animation showing unwanted vertical line (solved)
Replies: 2
Views: 1436

Re: Fog animation showing unwanted vertical line

The problem is with your picture. I'm not really an expert on photo manipulation, but you could try a web search for something like "Photoshop seamless tiling".