Search found 121 matches

by kostek00
Thu May 09, 2019 1:04 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] ConditionSwitch shows only default expression
Replies: 1
Views: 98

Re: ConditionSwitch shows only default expression

Problem solved. The reason it wasn't working was my own lack of knowlage of how to call image with ConditionSwitch. Instead of typical "show character_image" I should use "$ hatsumi_expression = "cry1"".
by kostek00
Wed May 08, 2019 12:59 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] ConditionSwitch shows only default expression
Replies: 1
Views: 98

[Solved] ConditionSwitch shows only default expression

image hatsumi_happy1: zoom 0.25 "images/characters/hatsumi/Hatsumi_face1 (Happy1).png" image hatsumi_angry1: zoom 0.25 "images/characters/hatsumi/Hatsumi_face4 (Angry1).png" image hatsumi_cry1: zoom 0.25 "images/characters/hatsumi/Hatsumi_face6 (Crying1).png" image hatsumi_embarrassed1: zoom 0.25 "...
by kostek00
Wed Apr 17, 2019 11:43 pm
Forum: Ren'Py Questions and Announcements
Topic: Showing bg using call and return
Replies: 2
Views: 149

Re: Showing bg using call and return

Before showing screen you should set skipping function to false and after closing screen to True: label userroom: if dtime in [0, 1, 2, 3]: scene urbase else: scene urnight $ _skipping = False show screen exitur call screen basehud $renpy.pause(hard=True) $ _skipping = True However I also recommend ...
by kostek00
Sun Apr 14, 2019 4:25 pm
Forum: Ren'Py Questions and Announcements
Topic: Settings screen always uses True setting instead of default setting
Replies: 5
Views: 109

Re: Settings screen always uses True setting instead of default setting

They work as you think because you have condition to select one of them. if you would remove condition you would see that only last (I think) one would be used.

In your case affeted elements by those style preferences are "style.window" and "style.say_dialogue".
by kostek00
Sun Apr 14, 2019 3:31 pm
Forum: Ren'Py Questions and Announcements
Topic: Settings screen always uses True setting instead of default setting
Replies: 5
Views: 109

Re: Settings screen always uses True setting instead of default setting

You are thinking about it in wrong way. I will try explain it. You don't register here style but style preference and that's big difference. renpy.register_style_preference(preference, alternative, style, property, value) First element is not element affected. "Preference" is name of style preferenc...
by kostek00
Sun Apr 14, 2019 2:36 pm
Forum: Ren'Py Questions and Announcements
Topic: Settings screen always uses True setting instead of default setting
Replies: 5
Views: 109

Settings screen always uses True setting instead of default setting

I made settings screen with custom options. They control things like outline, shadow, justify and few more. For some reason game always uses "True" for style preferences which are "text_outline", "text_shadow" and "text_justify". For everything else settings works as they should. This is is how i re...
by kostek00
Wed Apr 10, 2019 2:29 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Creating displayable character element with ToggleVariable
Replies: 4
Views: 125

Re: Creating displayable character element with ToggleVariable

Oh, that solved the problem. Thank you.

Also I had to change "false_value" to "None" otherwise it was crashing when hiding blush.
by kostek00
Tue Apr 09, 2019 6:03 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Creating displayable character element with ToggleVariable
Replies: 4
Views: 125

Re: Creating displayable character element with ToggleVariable

Oh wait i forgot i changed all "other" to "blush" so error should be "The variable blush does not exist."

This variable is in the same screen that button is:

Code: Select all

screen cg_page3(page=3):
    tag menu

    default blush = None
It's "None" because by default I don't want it to show "blush" on character.
by kostek00
Tue Apr 09, 2019 3:44 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Creating displayable character element with ToggleVariable
Replies: 4
Views: 125

[Solved] Creating displayable character element with ToggleVariable

I'm creating character gallery where user can pick body, face emotion and other stuff to show. I'm stuck with ToggleVariable to add and remove from sprite. It throws me error "The variable other does not exist." I do have it created in screen?: default blush = None This is button to toggle it: textb...
by kostek00
Thu Mar 14, 2019 4:14 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Checking user's cps option
Replies: 2
Views: 78

Re: Checking user's cps option

This is very strange. I already tried this and it was always executing "else" part but just for peace of mind I checked it again and now it works as it should. I don't know why it's like that. Cache might have mess something earlier? Edit: Oh, I know why it wasn't working. I thought it's max cps is ...
by kostek00
Thu Mar 14, 2019 3:28 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Checking user's cps option
Replies: 2
Views: 78

[Solved] Checking user's cps option

I would like to make a little check for cps set up by user. I didn't found anything that I think could help me with it in documentation. Any ideas how to do it?

Something like:

Code: Select all

if cps < 50:
show this
else:
show this
by kostek00
Thu Feb 28, 2019 12:20 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Settings screen is playing screen opening animation when changing options
Replies: 1
Views: 213

Re: Settings screen is playing screen opening animation when changing options

I managed to solve my problem. I made additional screen that contains animation for settings. So if you press settings button you go to transition screen that plays animations and after x time it goes to actual settings screen.

Code: Select all

timer 2 action ShowMenu('settings')
by kostek00
Sat Feb 23, 2019 10:51 am
Forum: Ren'Py Questions and Announcements
Topic: Custom text tag controlled by options and sound text tag
Replies: 0
Views: 196

Custom text tag controlled by options and sound text tag

1. Custom text tag controlled by options I was wondering if it's possible to create custom text tag that could be controlled by options to show or hide part of text depending on options. This is sort of upgrade to this . For example like that: "I {sfx}**PUNCH**{/sfx} AM {sfx}**PUNCH**{/sfx} EVERYTH...
by kostek00
Sat Feb 23, 2019 10:19 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Settings screen is playing screen opening animation when changing options
Replies: 1
Views: 213

[Solved] Settings screen is playing screen opening animation when changing options

I created few options using "StylePreference" but because of that settings screen is beeing refreshed ever time you press on it resulting in playing screen opening animation. Any way to fix that? Example option: hbox: ysize 60 xalign 0.0 spacing 50 text "Text Outline" style "settings_header" hbox: s...
by kostek00
Mon Feb 11, 2019 7:30 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Textbox transparency controlled by slider
Replies: 2
Views: 86

Re: Textbox transparency controlled by slider

God damn it. I always forgets I need to set default value... Thank you. At first transparency was changing only when game was restarted. I removed background from style and placed it in say screen. Now transparency changes immidiately. screen say(who, what): style_prefix "say" zorder 999 window: id ...