Search found 69 matches
- Sat Jan 11, 2014 11:13 am
- Forum: Ren'Py Questions and Announcements
- Topic: Export a file with unicode text [solved]
- Replies: 6
- Views: 901
Re: Export a file with unicode text
Try this (may need the codecs python library): target = open(name_export, 'w+') target.write(" EXPORT\n") target.write(the_export.encode("UTF-8")) #or "ISO-8859-7" specifically for greeks chars. target.write("\n") target.close() There are a few python tricks that tackle this issue, so if this doesn'...
- Fri Jan 10, 2014 4:15 pm
- Forum: Ren'Py Questions and Announcements
- Topic: comparing three variables at once(?)
- Replies: 7
- Views: 1945
Re: comparing three variables at once(?)
You can do it like this: "code" menu: "code": if variable1 <= variable2 <= variable3: jump code3 elif variable1 <= variable3 <= variable2: jump code2 etc. Not really better than nested ifs, rather an alternative, and can be suited better if you want to check for particular combinations only. Else if...
- Fri Jan 10, 2014 10:22 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to add imagemap to texbox?
- Replies: 3
- Views: 371
Re: How to add imagemap to texbox?
You may be referring to this. It's a great tutorial for adding imagebuttons to your textbox, but the process should be similar for imagemaps.
- Sun Jan 05, 2014 3:15 pm
- Forum: Ren'Py Questions and Announcements
- Topic: ImageMap - Pressed/MouseDown State
- Replies: 2
- Views: 772
Re: ImageMap - Pressed/MouseDown State
try adding a selected_hover state along with idle and hover states (or anything else you use), like: imagemap: idle "gui/imagemap_idle.png" hover "gui/imagemap_hover.png" selected_hover "gui/imagemap_sel_hover.png" or if you use the auto imagemap definition, just add a whatever-the-image-name-is_sel...
- Tue Dec 31, 2013 12:28 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Add typed-out text labels to imagemap areas?
- Replies: 5
- Views: 845
Re: Add typed-out text labels to imagemap areas?
How can I reposition the text so that it appears below the right image area, or at least where the mouse is? Right now it just shows up in the corner. This is how tooltips work as default. Since (I suppose) you use an imagemap for that screen, or imagebuttons for that matter, it could be easier to ...
- Fri Dec 27, 2013 3:38 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Underline texte who are not a hyperlink ?
- Replies: 6
- Views: 688
Re: Underline texte who are not a hyperlink ?
{u}Text{/u} does work as intended. Did you have a space between the slash and "u", as per your post? Because it's not needed.
- Wed Dec 25, 2013 11:48 am
- Forum: Ren'Py Questions and Announcements
- Topic: Make the text "shake"
- Replies: 2
- Views: 605
Re: Make the text "shake"
http://lemmasoft.renai.us/forums/viewto ... 2&p=296947
Here's a thread that explains (with code examples) how to achieve this effect.
Here's a thread that explains (with code examples) how to achieve this effect.
- Tue Dec 24, 2013 12:08 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Can I create "A wolf among us" style game with Ren'Py?
- Replies: 12
- Views: 2300
Re: Can I create "A wolf among us" style game with Ren'Py?
Ah, cool. Never used it myself, just stumbled upon it on the wiki and it seemed more straightforward.SundownKid wrote: Movie_cutscene is pretty much the same thing, except it doesn't support having anything in front of it like a menu, and you can't force the movie to play without stopping if someone clicks.
- Tue Dec 24, 2013 12:06 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Dating Sim similar to the DSE?
- Replies: 3
- Views: 703
Re: Dating Sim similar to the DSE?
There are all possible more or less with the stock DSE Framework (or can be done with just a bit of tinkering). No need to try and recreate it's whole function from the scratch.
- Tue Dec 24, 2013 12:01 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Can I create "A wolf among us" style game with Ren'Py?
- Replies: 12
- Views: 2300
Re: Can I create "A wolf among us" style game with Ren'Py?
Code: Select all
play movie "movie_background.ogv" loop
show movie with dissolveAlso, perhaps you may wanna check renpy.movie_cutscene. It could suit better the style you try to mimic.
- Mon Dec 23, 2013 11:23 am
- Forum: Ren'Py Questions and Announcements
- Topic: Can I create "A wolf among us" style game with Ren'Py?
- Replies: 12
- Views: 2300
Re: Can I create "A wolf among us" style game with Ren'Py?
I suppose you are referring to the {nw} text tag. This is a "no wait" tag that tells Ren'Py to advance onto the next text block without waiting for user input.
- Mon Dec 23, 2013 10:26 am
- Forum: Ren'Py Questions and Announcements
- Topic: Can I create "A wolf among us" style game with Ren'Py?
- Replies: 12
- Views: 2300
Re: Can I create "A wolf among us" style game with Ren'Py?
It is possible to some extent. Ren'Py supports video playback and timed menus to choose an answer (the latter not out-of-the-box but not overly hard to achieve it either). That said, you'll probably have to do at least some coding in Ren'Py/Python to mimic Telltale's gameplay style.
- Fri Dec 20, 2013 10:12 am
- Forum: Ren'Py Questions and Announcements
- Topic: Global variables
- Replies: 4
- Views: 7733
Re: Global variables
or foo = bar def example_function(): if foo == bar: #this will throw an error since there isn't an already declared foo variable local to the function. do stuff return Are you sure this throws an error? It is not the same to use a variable (as here, with the 'if') than to change it. Global variable...
- Thu Dec 19, 2013 9:34 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to Make a Condition Switch With More Than 1 Condition?
- Replies: 5
- Views: 650
Re: How to Make a Condition Switch With More Than 1 Conditio
This does work indeed as philat said. Apparently the evaluation field on ConditionSwitch allows for multiple conditions binded with logical expressions, even if there is no hint in the document for that and a text editor won't highlight it. You can't know if you don't try 
- Thu Dec 19, 2013 6:34 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Global variables
- Replies: 4
- Views: 7733
Re: Global variables
Global and local variables are a Python thing, rather than Ren'Py. Defining a variable as global allows you to reference and manipulate it inside functions or share it between functions without hiccups. A global variable named "var" will carry initial value and value changes across functions and gen...