And once again I forgot the existence of the while-function and failed all of you. If my programming skills are getting this bad, I'm really getting old. :(
Thanks a lot!
Search found 150 matches
- Wed Jan 09, 2013 5:34 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] pausing music to play a sound
- Replies: 3
- Views: 2969
- Wed Jan 09, 2013 5:22 am
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] pausing music to play a sound
- Replies: 3
- Views: 2969
Re: pausing music to play a sound
I have to correct myself. Not even the solution from the other thread works. I wrote this: def playSound(name, pause = None, hard = False): if pause == None: renpy.sound.play(name) return renpy.music.set_volume(0.0)#, delay=0.3) renpy.sound.play(name) renpy.pause(pause, hard) renpy.music.set_volume(...
- Wed Jan 09, 2013 3:16 am
- Forum: Ren'Py Questions and Announcements
- Topic: How do I keep track of python(?) values?
- Replies: 1
- Views: 291
Re: How do I keep track of python(?) values?
Mainly this: http://www.renpy.org/doc/html/quickstart.html#python-and-if-statements You get your variables with $ someVariable = someValue By default, the screen only shows what you tell him to show, so as long you don't type something like Protagonist "But I have [money] $!" , nothing will be shown...
- Wed Jan 09, 2013 2:24 am
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] change frame color in self defined screen
- Replies: 3
- Views: 2294
Re: change frame color in self defined screen
Code: Select all
screen status_bar:
frame:
style_group 'status'
[...]
init -2 python:
style.status_frame.background = "#223333"The rounded rectangle effect gets destroyed by this, but that doesn't matters to me, thanks a lot!
- Tue Jan 08, 2013 6:44 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] pausing music to play a sound
- Replies: 3
- Views: 2969
[solved] pausing music to play a sound
Yes, basically the same problem as in this thread , if a mod wants to merge the two threads I wouldn't be mad. EDIT: For some reason, the url-tag is not working? Interesting... But my problem is I defined my music/sound playing functions: init python: def playMusic(name): if name == renpy.music.get_...
- Tue Jan 08, 2013 4:02 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] change frame color in self defined screen
- Replies: 3
- Views: 2294
[solved] change frame color in self defined screen
Sorry to bother you guys with a simple question, but this one was not easy to search for.
I want to change the frame color. The last line above does nothing :(
Code: Select all
screen status_bar:
frame:
style_group 'status'
[...]
init -2 python:
style.status_frame.color = "#223333"- Mon Jan 07, 2013 4:13 am
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] Using variables to alter character sprite
- Replies: 4
- Views: 1189
Re: Using variables to alter character sprite?
Question the first: I think this is what you are looking for. Question the second: b), as you can see in the link above Sorry for that, I can't read. Okay, instead of show charabase [hero_color] at truecenter you could use $ renpy.show("charabase " + hero_color, at_list=[truecenter]) The reason you...
- Sun Jan 06, 2013 1:14 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] Problem with nested interactions
- Replies: 5
- Views: 2789
Re: Problem with nested interactions
EDIT: I notice that if you press the Poem button while you're at a menu, when you return, the script will act as if you picked the last menu option. Objection! My script doesn't behave this way. Mine confusion before had two causes. First I wasn't aware that Ren'Py and Python handle the 'return' st...
- Sun Jan 06, 2013 12:41 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] Problem with nested interactions
- Replies: 5
- Views: 2789
Re: Problem with nested interactions
That looks like it would work. Just one question: Why don't you get this: File "game/itemDB.rpy", line 133: 'return' outside function so, I would be fine putting everything into the function, just deactivating the screen, but then I still get the error. Newest try was this one: python: def useItem()...
- Sun Jan 06, 2013 12:04 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] u for Unicode, but not in menus?
- Replies: 2
- Views: 322
Re: u for Unicode, but not in menus?
Oh, then this is a kinda old feature? Okay!
- Sun Jan 06, 2013 9:23 am
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] Jump and the call stack of Ren'Py
- Replies: 3
- Views: 3272
Re: Jump and the call stack of Ren'Py
Me: Does jumping out of functions let them stay in the stack? Kinsmen: Try it out. -_q Damn, I'm stupid. I tested it and to my surprise jump seems to work the same way as call, at least with the counting. I'm glad to hear it doesn't kills the performance The main reason I do so many jumps is easy, a...
- Sun Jan 06, 2013 8:35 am
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] Problem with nested interactions
- Replies: 5
- Views: 2789
[solved] Problem with nested interactions
[ method in screen problem ] EDIT: Today on the 6.1.'13 was the first time I found a topic of mine with search function and it helped me solving the problem. Prosit! Until the point I encountered another one in this very context. So, I'm calling an inventory screen by clicking on a button of the qu...
- Sun Jan 06, 2013 7:59 am
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] u for Unicode, but not in menus?
- Replies: 2
- Views: 322
[solved] u for Unicode, but not in menus?
Last time I had a menu like this menu Prota "What should I do now?" u"heal Pokémon": [...] And Ren'Py didn't like the u File "game/navigation.rpy", line 284: expected menuitem u"heal Pokémon": ^ Ren'Py Version: Ren'Py 6.14.1.366 There are sure several ways to work around this problem and I probably ...
- Sun Jan 06, 2013 7:31 am
- Forum: Ren'Py Questions and Announcements
- Topic: Screenshot folder placement.
- Replies: 1
- Views: 1086
Re: Screenshot folder placement.
Maybe this (also relative new) topic can help :)
- Sun Jan 06, 2013 7:28 am
- Forum: Ren'Py Questions and Announcements
- Topic: Music?
- Replies: 2
- Views: 375
Re: Music?
I'm using SoundConverter for Ubuntu to convert into .ogg and honestly, I can't here a difference :)