Search found 786 matches

by kivik
Wed Jun 20, 2018 5:17 am
Forum: Ren'Py Questions and Announcements
Topic: Layered Images and Atribute_Function
Replies: 16
Views: 7963

Re: Layered Images and Atribute_Function

I just had a google on adding lists to sets and came across this, maybe it can offer more insight:

https://stackoverflow.com/questions/130 ... ist-to-set

At least now I think I understand the difference between lists and sets a bit more.
by kivik
Wed Jun 20, 2018 5:09 am
Forum: Ren'Py Questions and Announcements
Topic: Layered Images and Atribute_Function
Replies: 16
Views: 7963

Re: Layered Images and Atribute_Function

This is very interesting, although I'm wondering if you should ask PyTom directly and remove this post - if the tutorial is meant for patrons only? But without seeing what the tutorial was I can't tell if you're exposing too much of the tutorial out either! My suspicion is that the problem lies with...
by kivik
Wed Jun 20, 2018 4:48 am
Forum: Ren'Py Questions and Announcements
Topic: Dynamic Menus: Expected Statement Error? [SOLVED]
Replies: 2
Views: 624

Re: Dynamic Menus: Expected Statement Error?

Whenever you see "expected statement" it's usually a syntax error on the line it's pointing to (sometimes it's related to the previous line). In this case it's probably because you're calling the function outside python mode. If your line isn't inside a python block, you need to use $ befo...
by kivik
Tue Jun 19, 2018 7:18 am
Forum: Ren'Py Questions and Announcements
Topic: Random pause time
Replies: 4
Views: 761

Re: Random pause time

Can you explain what you mean with a bit more details? What do you want to happen?

For example this could be interpreted as "randomly the game pauses" or "the game pauses for a random amount of time".
by kivik
Tue Jun 19, 2018 5:51 am
Forum: Ren'Py Questions and Announcements
Topic: Using Multiple Screen Actions within One Action?
Replies: 3
Views: 514

Re: Using Multiple Screen Actions within One Action?

It's tricky for me to give good recommendations unfortunately as I learnt the concept of OOP years ago so I just had to learn the syntax for python. CodeAcademy has a good reputation and I can see they have a topic on Python Classes: https://www.codecademy.com/courses/learn-python/lessons/introducti...
by kivik
Mon Jun 18, 2018 7:39 pm
Forum: Ren'Py Questions and Announcements
Topic: Using Multiple Screen Actions within One Action?
Replies: 3
Views: 514

Re: Using Multiple Screen Actions within One Action?

So the short answer to your question is, you put your actions in a list, and weirdly you've started a list already, but you've put one action in it only. hotspot(292,122,144,126): action [If(money >= 45, true = tt.Action("Thank you for your purchase!"), false = tt.Action("I don't have...
by kivik
Mon Jun 18, 2018 2:40 am
Forum: Ren'Py Questions and Announcements
Topic: LayeredImage Limitations [Solved]
Replies: 2
Views: 711

Re: LayeredImage Limitations?

According to this part of the docs: https://www.renpy.org/doc/html/layeredimage.html#poses

You should define your layer image poses / expression separately so that you can refine the brow, eyes and mouth as you want them.
by kivik
Mon Jun 18, 2018 2:33 am
Forum: Ren'Py Questions and Announcements
Topic: Animated lips and eye blink help!
Replies: 10
Views: 1885

Re: Animated lips and eye blink help!

Try ditching the $ at the start of that line - it turns the line into python > but you're already inside a python block, so maybe it's throwing that error as a result. That said, I don't know if you can do python loop inside an image declaration. See what happens and come back if it doesn't work. Yo...
by kivik
Sun Jun 17, 2018 4:34 pm
Forum: Ren'Py Questions and Announcements
Topic: Using a variable in a different script file
Replies: 12
Views: 2813

Re: Using a variable in a different script file

Ok so I just experimented with this, and this seems to work: screen test_menu: default song = "title_screen2" if persistent.var else "title_screen" on "show" action Play("music", "%s.ogg" % song, loop=True) on "hide" action Stop("music...
by kivik
Sun Jun 17, 2018 4:22 pm
Forum: Ren'Py Questions and Announcements
Topic: DynamicImage error
Replies: 4
Views: 2114

Re: DynamicImage error

The error is saying that the variable doesn't exist and it can't do the text interpolation - do you have a function or python code that unsets the variable on your menu somehow?
by kivik
Sun Jun 17, 2018 12:33 pm
Forum: Ren'Py Questions and Announcements
Topic: Indentation Mismatch error
Replies: 20
Views: 20458

Re: Indentation Mismatch error

You def needs to be one indentation down from the class line:

Code: Select all

init python:
    class ClassName:
        def functions(self):
by kivik
Sun Jun 17, 2018 9:08 am
Forum: Ren'Py Questions and Announcements
Topic: Using a variable in a different script file
Replies: 12
Views: 2813

Re: Using a variable in a different script file

I've not played with music files, but I think you just add it: https://www.renpy.org/doc/html/screens.html#add

The doc says you add displayable that way, but I've seen people mention adding movies or sound that way - so it should work!
by kivik
Sun Jun 17, 2018 7:29 am
Forum: Ren'Py Questions and Announcements
Topic: Using a variable in a different script file
Replies: 12
Views: 2813

Re: Using a variable in a different script file

If you read what gas said - he said NOT to do it via the config variables, but to directly change the music on your main menu screen - i.e. add the music to that screen directly with your condition statement.
by kivik
Sun Jun 17, 2018 5:55 am
Forum: Ren'Py Questions and Announcements
Topic: (SOLVED) Looping an AVI file in Main Menu and adding imagemap buttons for it.
Replies: 2
Views: 1020

Re: Looping an AVI file in Main Menu and adding imagemap buttons for it.

Try making your video a displayable first: https://www.renpy.org/doc/html/movie.html#movie-displayables-and-movie-sprites Then add it to the screen instead of playing it, then it'll loop automatically. Play is actually meant to be an audio action: https://www.renpy.org/doc/html/screen_actions.html#P...