Search found 94 matches

by SONTSE
Sun May 31, 2020 7:42 pm
Forum: Ren'Py Questions and Announcements
Topic: Multiple password system.
Replies: 3
Views: 300

Re: Multiple password system.

if your answer is list of possible variants, you check it with 'in' instead of '=='

Code: Select all

if code in pass2:
    "Wrong Answer. Try again!"
    jump safe

if code in pass3:
    "Language! Try again!"
    jump safe
by SONTSE
Thu May 07, 2020 7:53 pm
Forum: Development of Ren'Py
Topic: [bug] displayable defined in certain way going nuts
Replies: 2
Views: 508

[bug] displayable defined in certain way going nuts

Hi! Wasn't here for a long time so sorry if missed thread etc. So here is example code to replicate bug. What I expect: a red square bouncing down with random speed. What I get: until 7.3.2: exactly what I expect since 7.3.3: square flickers like crazy Note: this applies to any displayable, not only...
by SONTSE
Mon May 27, 2019 1:16 pm
Forum: Ren'Py Questions and Announcements
Topic: Showing a screen or another one after labels or screens
Replies: 4
Views: 597

Re: Showing a screen or another one after labels or screens

i think you should provide exact code you need to fix because usually there are no problem to make a switch between shown statements whatsoever. screen map_switch if condition: use map1 else: use map2 label mapswitch: if condition: call screen map1 else: call screen map2 both approaches should work ...
by SONTSE
Sun May 12, 2019 4:49 am
Forum: Ren'Py Questions and Announcements
Topic: [Question] Selling Your Game in Parts
Replies: 3
Views: 216

Re: [Question] Selling Your Game in Parts

1) https://www.renpy.org/dev-doc/html/pers ... Persistent here is official example of exactly what you want.
2) This marketing strat is famous for being frantically hated, thus I doubt it is optimal in terms of profit. But it's up to you :D
by SONTSE
Sun May 12, 2019 4:28 am
Forum: Ren'Py Questions and Announcements
Topic: [Help] invaild syntax, I don't know what's wrong
Replies: 1
Views: 116

Re: [Help] invaild syntax, I don't know what's wrong

Code: Select all

init python:
    def ending(truth):
        global goodending
        global badending
        if truth >=0:
            renpy.jump(goodending)
        else:
            renpy.jump(badending)
        return
you don't need angle brackets to declare global vars in python
by SONTSE
Fri May 10, 2019 11:05 am
Forum: Ren'Py Questions and Announcements
Topic: how do i animate the main menu's background, like what DDLC did?
Replies: 2
Views: 175

Re: how do i animate the main menu's background, like what DDLC did?

You can make animated displayable using "Animation and Transformation Language" https://www.renpy.org/doc/html/atl.html And then place it into main_menu screen, which is usually located in screens.rpy. Search "screen main_menu" Screens are operated with Screens Language https://www.renpy.org/doc/htm...
by SONTSE
Fri May 10, 2019 5:10 am
Forum: Ren'Py Questions and Announcements
Topic: How to create a parallax in the main menu
Replies: 7
Views: 703

Re: How to create a parallax in the main menu

whoops, just realized my remarks indented in a misleading way. this would be more clear def event(self, ev, x, y, st): #insert here if x<0 or y<0: return #rest of code here in case of further hardships there is tested worknig example code #to run this toss any image into images dir of your project a...
by SONTSE
Thu May 09, 2019 11:37 am
Forum: Ren'Py Questions and Announcements
Topic: How to create a parallax in the main menu
Replies: 7
Views: 703

Re: How to create a parallax in the main menu

Would you happen to know how to stop it from getting into its original position when the cursor goes past the edge of the window? on that occasion both x and y on UDD's 'event' section gain -1 value. so you just need to if these values out insertion suggested below is somewhat brutal, but might wor...
by SONTSE
Tue May 07, 2019 10:00 am
Forum: Ren'Py Questions and Announcements
Topic: Pause UDD from screen?
Replies: 2
Views: 185

Re: Pause UDD from screen?

Just made my example for UDD which pauses when enters game menu (right click). Not pretty, but you can utilize it if nothing better comes along. Hope it helps :wink: init python: config.layers.append('X') def any(list): for item in list: if item: return True return False class Paused(renpy.Displayab...
by SONTSE
Mon Feb 18, 2019 2:42 pm
Forum: Ren'Py Questions and Announcements
Topic: How to create a parallax in the main menu
Replies: 7
Views: 703

Re: How to create a parallax in the main menu

I also tried using this image tracking code provided by PyTom in this Topic: https://lemmasoft.renai.us/forums/viewtopic.php?t=28495 This worked, but I have no clue how to tinker with it even after reading the CDD renpy page. I would like for the background image to follow the cursor, but only slig...
by SONTSE
Fri Feb 15, 2019 11:32 am
Forum: Ren'Py Questions and Announcements
Topic: (solved)How do I script a reposition of drag within a screen?
Replies: 2
Views: 161

Re: How do I script a reposition of drag within a screen?

Maybe (untested) $ renpy.get_widget( "say", "screen_say" ).snap( 0, 400, 0.5 ) Thanks! That surely did lead to a working solution. Although it won't work like this because no say screen is shown when $ scripts are executed, hence get_widget returns None instead of a widget. So there is some tricky ...
by SONTSE
Thu Feb 14, 2019 4:12 pm
Forum: Ren'Py Questions and Announcements
Topic: (solved)How do I script a reposition of drag within a screen?
Replies: 2
Views: 161

(solved)How do I script a reposition of drag within a screen?

Let's say I have a screen with a draggable object inside screen say(who, what): style_prefix "say" drag: drag_name 'screen_say' window: id "window" if who is not None: window: id "namebox" style "namebox" text who id "who" text what id "what" and I want it to move into a certain position, ideally wi...
by SONTSE
Thu Feb 14, 2019 3:09 pm
Forum: Ren'Py Questions and Announcements
Topic: how do I make text skippable on first read?
Replies: 3
Views: 190

Re: how do I make text skippable on first read?

How about you try.. label boring_part: $ _skipping = True 'lines of boring text which you can skip' 'more lines of boring text which you can skip' 'even more lines of boring text which you can skip' #dozens of boring lines but we skipped them #this text shouldn't be skippable if unseen and not opte...
by SONTSE
Wed Feb 13, 2019 5:25 pm
Forum: Ren'Py Questions and Announcements
Topic: how do I make text skippable on first read?
Replies: 3
Views: 190

how do I make text skippable on first read?

I need some part of my story to behave like user already read it. i.e be skippable with 'skip' feature right away on the first run, even if 'skip unseen text' preference is off. I think something like "register" these lines as already seen, would be ideal solution. Can I do it? #this text should be ...
by SONTSE
Tue Jan 29, 2019 7:42 am
Forum: Development of Ren'Py
Topic: Ren'Py Gripes
Replies: 510
Views: 132631

Re: Ren'Py Gripes

Made some silly mouth animation. default preferences.text_cps = 200 image talking_mouth: 'talking_mouth_1' 1/preferences.text_cps 'talking_mouth_2' 1/preferences.text_cps 'talking_mouth_3' 1/preferences.text_cps 'talking_mouth_4' 1/preferences.text_cps 'talking_mouth_5' 1/preferences.text_cps 'talki...