Search found 69 matches

by Tsapas
Thu Dec 19, 2013 4:45 pm
Forum: Ren'Py Questions and Announcements
Topic: "Always on top" option?
Replies: 8
Views: 1283

Re: "Always on top" option?

There is no "easy" way to achieve this if you want your game to be cross-platform combatible. Each desktop environment would need a different python function for that, so you'd need one for Windows, one for Mac, and a few for Linux since there are a handful of desktop engines for it (KDE and Gnome s...
by Tsapas
Wed Dec 18, 2013 7:28 am
Forum: Ren'Py Questions and Announcements
Topic: about the some values in the preference screen.
Replies: 6
Views: 902

Re: about the some values in the preference screen.

You can try editing 00library.rpy @line 76 if config.skipping == "slow" and config.skip_indicator: ui.text(_(u"Skip Mode"), style='skip_indicator') if config.skipping == "fast" and config.skip_indicator: ui.text(_(u"Fast Skip Mode"), style='skip_indicator') return replace text with a defined image o...
by Tsapas
Wed Dec 18, 2013 3:55 am
Forum: Ren'Py Questions and Announcements
Topic: Kerning and Tracking
Replies: 3
Views: 496

Re: Kerning and Tracking

I'm not too sure about kerning between specific letters inside a text block without tediously using the following tag, but tracking is possible using a kerning tag (as per here).

Code: Select all

"{k=2.0} This will add an extra 2 px between letters in enclosed words{/k}"
by Tsapas
Sun Dec 15, 2013 1:59 pm
Forum: Ren'Py Questions and Announcements
Topic: Debugging/Statistics Menu
Replies: 4
Views: 719

Re: Debugging/Statistics Menu

A very crude and quick screen is the following screen debug_screen: frame: vbox: hbox: textbutton "button" action SetVariable("variable", value) textbutton "button" action #some other action #etc. hbox: text "[variable]" #will show the variable value text "variable name : [variable]" #if you want to...
by Tsapas
Fri Dec 13, 2013 11:04 am
Forum: Ren'Py Questions and Announcements
Topic: How to disable quit_action on main menu only?
Replies: 4
Views: 848

Re: How to disable quit_action on main menu only?

Btw, you may wanna add this too in 00layout.rpy label _main_menu_prompt: $ renpy.loadsave.force_autosave() if layout.yesno_prompt(None, layout.MAIN_MENU): $ in_title = False #add this $ renpy.full_restart(transition=config.game_main_transition) else: return Because, if the user plays a bit, then go ...
by Tsapas
Fri Dec 13, 2013 10:31 am
Forum: Ren'Py Questions and Announcements
Topic: How to disable quit_action on main menu only?
Replies: 4
Views: 848

Re: How to disable quit_action on main menu only?

This just controls whether you get a Yes/No prompt when quiting config.quit_action = Quit(confirm=False) Since you use an in_title trigger to control autosave, try this in 00layout.rpy (the 00layout.rpy has an init python block with a -1400 priority. If you get errors try defining in_title with a -1...
by Tsapas
Thu Dec 12, 2013 4:27 pm
Forum: Ren'Py Questions and Announcements
Topic: Is it possible to play sound effects within text?
Replies: 3
Views: 638

Re: Is it possible to play sound effects within text?

I have a {w} to make the text pause, and in case you're wondering, I can't just split the text into two like this: b "I had that..." play sound "lightbulb.ogg" b "I had that... dream again." Because my text doesn't all appear at once, it's at 20 characters per second; so when I do that, the "I had ...
by Tsapas
Thu Dec 12, 2013 9:04 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How to change volume of channels on screen?
Replies: 2
Views: 758

Re: How to change volume of channels on screen?

Try this.

Code: Select all

$ _preferences.mute["music"] = True
It mutes all music on the spot since it *should* change the game preferences, but I have no project with music at hand to test it.
by Tsapas
Wed Dec 11, 2013 10:05 am
Forum: Ren'Py Questions and Announcements
Topic: Thumbnail, Saved date doesn't show up on Saved Game Slot
Replies: 9
Views: 1090

Re: Thumbnail, Saved date doesn't show up on Saved Game Slot

This will show the autosave screenshots, but won't show the regular ones screen load_save_slot: $ file_text = "% s\n %s" % (FileTime(number, empty="Empty Slot."), FileSaveName(number)) add FileScreenshot(number,page="auto") xpos 850 ypos 15 text file_text xpos 340 ypos 30 size 30 If you only use aut...
by Tsapas
Tue Dec 10, 2013 8:12 pm
Forum: Ren'Py Questions and Announcements
Topic: Thumbnail, Saved date doesn't show up on Saved Game Slot
Replies: 9
Views: 1090

Re: Thumbnail, Saved date doesn't show up on Saved Game Slot

From a quick look this here is probably the problem screen load_save_slot: $ file_text = "% s\n %s" % (FileTime(number, empty="Empty Slot."), FileSaveName(number)) add FileScreenshot(number) xpos 850 ypos 15 text file_text xpos 340 ypos 30 size 30 def FileScreenshot(name, empty=None, page=None): """...
by Tsapas
Tue Dec 10, 2013 10:19 am
Forum: Ren'Py Questions and Announcements
Topic: How Do I Change The Text Color Permanently In The Dialogbox
Replies: 2
Views: 474

Re: How Do I Change The Text Color Permanently In The Dialog

try style.say_dialogue.color instead :wink: . If it's not there, add it yourself.
by Tsapas
Tue Dec 10, 2013 10:10 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How to add autosave slot?
Replies: 3
Views: 802

Re: How to add autosave slot?

I suppose you want to load the newest autosave with this button. If so, something like this should do it. hotspot (85, 392, 1216, 218) action FileLoad(1, page="auto", confirm=True, newest=True) #the first slot should always be the newest, but if it's not the case newest=True could make the button in...
by Tsapas
Tue Dec 10, 2013 9:48 am
Forum: Ren'Py Questions and Announcements
Topic: about the some values in the preference screen.
Replies: 6
Views: 902

Re: about the some values in the preference screen.

Regarding the screen mode, it's a simple check of _preferences.fullscreen. It's true or false depending on (apparently) whether the game is in fullscreen mode or not. if _preferences.fullscreen: #do stuff else: #do other stuff first, i want to create a button that will mute and un-mute the music vol...
by Tsapas
Tue Dec 10, 2013 9:30 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How to auto save when returning to main menu?
Replies: 2
Views: 635

Re: How to auto save when returning to main menu?

You could try editing 00action_menu.rpy and duplicate the Quit action. In class MainMenu(Action) change this: if self.confirm: layout.yesno_screen(layout.MAIN_MENU, MainMenu(False)) to: if self.confirm: renpy.loadsave.force_autosave() layout.yesno_screen(layout.MAIN_MENU, MainMenu(False)) Edit: 00la...
by Tsapas
Thu Nov 28, 2013 12:06 pm
Forum: Ren'Py Questions and Announcements
Topic: renpy.input() in Android
Replies: 13
Views: 4477

Re: renpy.input() in Android

You can still use user input by bypassing renpy.input for android and use this (not my code but could be handy): # replace your renpy.input call with this. if not renpy.variant('touch') and povName == '': info "Please enter your name." $ povFirstName = renpy.input("What is your first name?") or "Nam...