Search found 8 matches
- Tue Feb 09, 2016 6:05 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Voice not playing, but 'Play Voice' works
- Replies: 5
- Views: 2541
Re: Voice not playing, but 'Play Voice' works
Have you set config.has_voice to True in your options.rpy file? config.has_voice defaults to False in a new project, which would explain why the "voice" statement doesn't give you any errors--if it's set to False, the statement doesn't do anything. It doesn't even look at the filename you ...
- Tue Dec 01, 2015 5:11 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Renpy is compiling/parsing comments?
- Replies: 14
- Views: 1096
Re: Renpy is compiling/parsing comments?
The error's occurring before it even gets to parsing. It's just trying to load the file at that point. Ren'Py needs files to be encoded in UTF-8, but based on your error, it looks like your editor is likely saving them as Windows-1252 . I don't use VS, but there should be an option somewhere to chan...
- Thu Nov 19, 2015 7:55 pm
- Forum: Ren'Py Questions and Announcements
- Topic: ATL - pos question [SOLVED]
- Replies: 14
- Views: 2012
Re: ATL - pos question
You're mixing types in the first example -- from int (100, 100) to float (0.5, 0.5). The documentation says:
The behavior is undefined when an interpolation has old and new property values of different types.
- Sat Nov 07, 2015 4:42 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Audio plays even when in-game settings are muted(SOLVED)
- Replies: 2
- Views: 816
Re: Audio plays even when in-game settings are muted
For your first three channels, the mixer name is (somewhat confusingly) "sfx", not "sound".
- Wed Nov 04, 2015 6:01 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Variable string inside a variable [Solved]
- Replies: 2
- Views: 531
Re: Variable string inside a variable
It's possible, but it's ugly and counterintuitive, and I wouldn't recommend doing it. In this situation, storing your flags in a dict probably makes more sense.
Then you can set it like this:
Code: Select all
flags = {"red": False, "blue": False}
Code: Select all
flags[gem_color] = True
- Tue Nov 03, 2015 4:57 am
- Forum: Ren'Py Questions and Announcements
- Topic: (solved) Save/Load + defined function proplem
- Replies: 3
- Views: 446
Re: Save/Load + defined function proplem
You're looking for SetField, rather than SetVariable.
Code: Select all
SetField(persistent, "playing", True)
- Sat Oct 10, 2015 4:14 pm
- Forum: Ren'Py Questions and Announcements
- Topic: My Side Image Won't Stay...
- Replies: 8
- Views: 691
Re: My Side Image Won't Stay...
You seem to have found a solution that works for you, but in the interest of helping others who might run into similar problems, I wanted to point out the issue with your original code. Your ConditionSwitch is missing commas after the image filenames, which is what caused your error. It should be: i...
- Fri Oct 09, 2015 5:01 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Variables in sprite image definitions
- Replies: 11
- Views: 1340
Re: Variables in sprite image definitions
The tinting sounds like something you'd want a DynamicDisplayable for. For a quick example of how you might do this: init python: def apply_tint(st, at, template): return template % tint, None init: image shuuki_base = StateMachineDisplayable( "shuuki_base", "default", { "de...