Search found 111 matches
- Tue Mar 25, 2014 1:28 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Multi-dimensional arrays - possible?
- Replies: 2
- Views: 1021
Re: Multi-dimensional arrays - possible?
daylist = [ ["April",1,"Monday","Sunny",False], ["April",2,"Tuesday","Raining",False], ["April",3,"Wednesday","Raining",False], ] daylist[0] : ["April",1,"Monday","Sunny",False] d...
- Tue Mar 18, 2014 4:56 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Perspective/Projection Transforms?
- Replies: 7
- Views: 3154
Re: Perspective/Projection Transforms?
I wish. Your wish has come true! (Kinda, not really) My math skills are not nearly strong enough to seriously attempt this, but reading articles on the SNES Mode 7 put crazy ideas in my head. The following displayable uses crop to make scanlines and a xzoom to fake out the perspective effect. As is...
- Tue Mar 18, 2014 12:08 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Perspective/Projection Transforms?
- Replies: 7
- Views: 3154
Perspective/Projection Transforms?
Hi everybody,
I've been looking through ATL and Transform() documentation, and I haven't seen anything regarding a perspective manipulation on an image and/or displayable. Is there a sort of Matrix Transform I'm not aware of, or is this feature not available at all?
I've been looking through ATL and Transform() documentation, and I haven't seen anything regarding a perspective manipulation on an image and/or displayable. Is there a sort of Matrix Transform I'm not aware of, or is this feature not available at all?
- Fri Mar 14, 2014 1:30 pm
- Forum: Ren'Py Cookbook
- Topic: Encyclopaedia / Bestiary Framework
- Replies: 118
- Views: 56657
Re: Encyclopaedia / Bestiary Framework
Thanks for working on this! It's something I was putting off until much later in development. I'm sure this will help tremendously, and I'll be following your work closely. Thanks, I hope you find it useful. The latest version is "feature complete" since I can't think of much more to add,...
- Mon Mar 10, 2014 12:44 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to get the Width and Height of Text? [SOLVED]
- Replies: 9
- Views: 3999
Re: How to get the Width and Height of Text?
Yeah, it was added in 6.17. I didn't know about it either until xela's post. Ah, my bad, xela's right. I had to update. .size() returns the same result as my code. I'd suggest avoiding this entirely by using a fixed, fixed: xysize (100, 500) add "foo.png" text "Hello, World" xal...
- Sat Mar 08, 2014 6:33 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to get the Width and Height of Text? [SOLVED]
- Replies: 9
- Views: 3999
Re: How to get the Width and Height of Text?
Ren'Py 6.16.5.525
- Sat Mar 08, 2014 6:15 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Making text stay in the same position when name shows up?
- Replies: 3
- Views: 576
- Sat Mar 08, 2014 6:04 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to get the Width and Height of Text? [SOLVED]
- Replies: 9
- Views: 3999
Re: How to get the Width and Height of Text?
Trying that caused an exception:
AttributeError: 'Text' object has no attribute 'size'
AttributeError: 'Text' object has no attribute 'size'
- Sat Mar 08, 2014 3:47 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to get the Width and Height of Text? [SOLVED]
- Replies: 9
- Views: 3999
Re: How to get the Width and Height of Text?
Well, that's unfortunate. This is something I just thought of. I'm not 100% comfortable with it, but it roughly works. getSize() has to be called inside a screen or it'll return 0,0. #Text Displayable with a function to return the width and height of the text. class TextWH(renpy.Displayable): def __...
- Sat Mar 08, 2014 1:41 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to get the Width and Height of Text? [SOLVED]
- Replies: 9
- Views: 3999
How to get the Width and Height of Text? [SOLVED]
Hi everybody, I'm wondering if there's a way to get the Width and Height of any given text string. The reason is because I'd like to use LiveComposite on a button graphic without text, pasting on the text string for each imagebutton I'd need. To center the text on each button, I'd need to take half ...
- Thu Feb 13, 2014 1:14 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Solved: Problem getting list variable to work
- Replies: 2
- Views: 2117
Re: Problem getting list variable to work
What happens if you try:
$current_day = day[day_count]
text "{size=12}{color=#ff0000}[current_day]{/color}{/size}"
$current_day = day[day_count]
text "{size=12}{color=#ff0000}[current_day]{/color}{/size}"
- Tue Feb 11, 2014 8:37 pm
- Forum: Ren'Py Cookbook
- Topic: Encyclopaedia / Bestiary Framework
- Replies: 118
- Views: 56657
Encyclopaedia / Bestiary Framework
Online documentation: https://renpy-encyclopaedia.readthedocs.io/ Demo game: https://jsfehler.itch.io/renpy-encyclopaedia Source code: https://github.com/jsfehler/renpy-encyclopaedia Latest release: https://github.com/jsfehler/renpy-encyclopaedia/releases Features: - Sort entries by Number, Alphabet...
- Sat Feb 01, 2014 3:15 am
- Forum: Ren'Py Questions and Announcements
- Topic: Best way to sort a list?
- Replies: 19
- Views: 7527
Re: Best way to sort a list?
Here's a modified example that removes the need for "while True:", but I'm afraid I don't know quite enough about the consequences of "renpy.restart_interaction()" to say if this is correct. It's not correct and while loop is not required for this class to work in any way or for...
- Fri Jan 31, 2014 8:30 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Best way to sort a list?
- Replies: 19
- Views: 7527
Re: Best way to sort a list?
Here's a modified example that removes the need for "while True:", but I'm afraid I don't know quite enough about the consequences of "renpy.restart_interaction()" to say if this is correct. init python: from random import shuffle from copy import copy class SortContainer(Action)...
- Fri Jan 31, 2014 3:41 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Best way to sort a list?
- Replies: 19
- Views: 7527
Re: Best way to sort a list?
init python: from random import shuffle from copy import copy class SortContainer(Action): """ Sorts an iterable container on key parameter. """ def __init__(self, container, key=None): self.container = container self.key = key def __call__(self): for key in renpy.stor...