Search found 125 matches

by kostek00
Wed Sep 25, 2019 8:01 am
Forum: Ren'Py Questions and Announcements
Topic: Ren'Py resets animation when pressing button instead of continuing from previous state
Replies: 0
Views: 333

Ren'Py resets animation when pressing button instead of continuing from previous state

The animation plays as follow: 1. Initialy buttons are semi-transparent. 2. When hovering over button it slides slightly to the center and become fully visible. 3. When pressing on button it stays in that position and is fully visible. 4. When pressing on different button previously active button be...
by kostek00
Tue Jun 25, 2019 6:47 am
Forum: Ren'Py Questions and Announcements
Topic: Ren'Py always throws error for custom text tag
Replies: 5
Views: 484

Re: Ren'Py always throws error for custom text tag

Thanks for update. I'll be waiting for release.
by kostek00
Sun Jun 23, 2019 4:10 pm
Forum: Ren'Py Questions and Announcements
Topic: Ren'Py always throws error for custom text tag
Replies: 5
Views: 484

Re: Ren'Py always throws error for custom text tag

It's exact copy from documentation that also don't work: init python: def bang_tag(tag, argument): return [ ( renpy.TEXT_TAG, "size=40"), (renpy.TEXT_TEXT, "!"), (renpy.TEXT_TAG, "/size") ] config.self_closing_custom_text_tags["bang"] = bang_tag label start: "This is awesome{bang}" And I'm using new...
by kostek00
Sun Jun 23, 2019 1:29 pm
Forum: Ren'Py Questions and Announcements
Topic: Ren'Py always throws error for custom text tag
Replies: 5
Views: 484

Ren'Py always throws error for custom text tag

I tired to make my own self closing text tags but Ren'py was throwing me error that they don't exist. Then I tried non-self closing text tag but result was the same. I tried for the last time and copied example from documentation and it's also error. I then reinstalled Ren'Py and tried on fresh proj...
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: 119

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: 119

[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: 168

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: 148

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: 148

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: 148

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: 160

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: 160

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: 160

[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: 100

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: 100

[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