Search found 2471 matches

by xela
Tue Sep 26, 2017 2:37 pm
Forum: Ren'Py Questions and Announcements
Topic: Sliding Text?
Replies: 4
Views: 672

Re: Sliding Text?

Try something along the lines of: default patrons = range(100) transform my_scroll(): subpixel True xpan -180 linear 60.0 xpan 180 repeat screen patrons(): frame: background Frame(Solid("#00000011")) yalign .9 at my_scroll() has hbox spacing 5 for p in patrons: text str(p) yalign .5 label ...
by xela
Sat Sep 23, 2017 11:06 am
Forum: Ren'Py Questions and Announcements
Topic: RenPy 6.99.13 Prereleased
Replies: 16
Views: 5712

Re: RenPy 6.99.13 Prereleased

Our game failed to get past the new SL parser. It would seem that it's no longer possible to condition layouts: screen test(): frame: if False: has vbox xsize 100 else: has vbox xsize 50 label start: call screen test The reason we did not pick this up earlier is that recompile was required, older by...
by xela
Tue Sep 19, 2017 6:21 pm
Forum: Ren'Py Questions and Announcements
Topic: Python Equivalents
Replies: 2
Views: 881

Re: Python Equivalents

https://www.renpy.org/doc/html/dialogue.html?highlight=_window_hide#_window_hide https://www.renpy.org/doc/html/modes.html?highlight=nvl_show#example-mode-callbacks Some take transitions as arguments, sometimes you can use add https://www.renpy.org/doc/html/statement_equivalents.html?highlight=with_...
by xela
Tue Sep 19, 2017 1:12 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Help With Imagebuttons
Replies: 10
Views: 1216

Re: Help With Imagebuttons

Code: Select all

hovered SetField(config, "mouse", {"default": [(cursor, xoff, yoff)]}) # Where cursor is a path to an image, xoff and yoff offsets to place it correctly.
unhovered SetField(config, "mouse", None)
by xela
Tue Sep 19, 2017 1:09 pm
Forum: Ren'Py Questions and Announcements
Topic: Spriter API?
Replies: 2
Views: 706

Re: Spriter API?

There is no Spriter, Spine, DragonBones or any skeletal animation software implementation for Ren'Py. Spine may be simpler to implement as there are some Python based code libraries for it already. It's difficult to say how well it would work without trying. People usually export a series of PNG fil...
by xela
Tue Sep 19, 2017 6:06 am
Forum: Ren'Py Questions and Announcements
Topic: imagebuttons with timer element [SOLVED]
Replies: 20
Views: 2901

Re: imagebuttons with timer element

Use my variant. Danny's approach is likely (likely because I have no idea if Ren'Py will recreate timers as it expects, never looked into that or tried doing it that way) workable as well, but it's unfinished. Mine version is ready to use, you should also be able to add to the value if some special ...
by xela
Mon Sep 18, 2017 4:12 pm
Forum: Ren'Py Questions and Announcements
Topic: imagebuttons with timer element [SOLVED]
Replies: 20
Views: 2901

Re: imagebuttons with timer element

I know this, that's why I had to use a global variable in my previous implementation, I forgot to change the code in that post too, that should be an If with SetVariable action. Anyway that one is too completely wrong. As a general rule, keeping stuff local (if possible) is a better bet in 99.9% of...
by xela
Mon Sep 18, 2017 3:59 pm
Forum: Ren'Py Questions and Announcements
Topic: imagebuttons with timer element [SOLVED]
Replies: 20
Views: 2901

Re: imagebuttons with timer element

init python: def changeTimer(var, amount): var += amount if var < 0: var = 0 screen peek2(): default time_left = 5.0 #This is a local, screen variable #This implements the If action too, it decreases 1 second each time the timer repeats, and stops the timer when it reachs 0. timer time_left repeat ...
by xela
Mon Sep 18, 2017 3:31 pm
Forum: Ren'Py Questions and Announcements
Topic: imagebuttons with timer element [SOLVED]
Replies: 20
Views: 2901

Re: imagebuttons with timer element

Using screen language, this is likely the most accurate way: screen peek2(): default time_left = 10.0 text "[time_left]" align .5, .5 if time_left <= 0: timer .001 action Return() # Whatever action you want to happen when timer runs out! else: timer .1 repeat True action SetScreenVariable(...
by xela
Mon Sep 18, 2017 3:24 pm
Forum: Ren'Py Questions and Announcements
Topic: imagebuttons with timer element [SOLVED]
Replies: 20
Views: 2901

Re: imagebuttons with timer element

Reading through timdonehy200's description of what he wanted to achieve, I devised an idea of how this system could be implemented, and shared it, but it was not meant to be a final solution, I should have been more clear on that regard, only wanted to share my thoughts on the matter in hope timdon...
by xela
Mon Sep 18, 2017 3:14 pm
Forum: Ren'Py Questions and Announcements
Topic: imagebuttons with timer element [SOLVED]
Replies: 20
Views: 2901

Re: imagebuttons with timer element

Thanks DannyGMaster, I will try this, looks good! Why are you saying it won't work xela exactly? Sorry, I'm not a very good coder and don't know what an action conditioned off a local variable means exactly, could you please explain?... Also,to be clear, I don't want the timer to be "hidden&qu...
by xela
Mon Sep 18, 2017 12:31 pm
Forum: Ren'Py Questions and Announcements
Topic: imagebuttons with timer element [SOLVED]
Replies: 20
Views: 2901

Re: imagebuttons with timer element

SetVariable could work but not for taking out an x time of seconds from the timer, for that, you could make a variable to hold the time left, and write a function to change that variable's value, it could be something like this (NOT tested, probably will need a bit of tweaking): That is a bad way o...
by xela
Sun Sep 17, 2017 5:12 am
Forum: Ren'Py Questions and Announcements
Topic: sqlite3 with Ren'py
Replies: 4
Views: 1553

Re: sqlite3 with Ren'py

I am afraid that it may not be possible to do, you can't add C dependent modules to Ren'Py without rebuilding the engine which is insanely, incredibly, horribly complicated. If one such a module is not shipped with Ren'Py, you either have to try and find a pure python implementation of the same, wri...