Search found 58 matches

by Lord Hisu
Thu Apr 12, 2018 1:26 am
Forum: Ren'Py Questions and Announcements
Topic: Is it possible to stick two words together?
Replies: 5
Views: 644

Re: Is it possible to stick two words together?

You can do it easily in Python:

Code: Select all

$ new_var = var1 + var2
var1 and var2 need to be strings, of course.
by Lord Hisu
Thu Apr 12, 2018 1:21 am
Forum: Ren'Py Questions and Announcements
Topic: Snowblossom() and Animation()
Replies: 2
Views: 773

Re: Snowblossom() and Animation()

Sorry, I can't give you an example right now, but I can try to explain the process. SnowBlossom takes a displayable as the first argument. You can apply a transform on some image an then provide that transformed image as an argument. For example, using the code I found on this page : transform birds...
by Lord Hisu
Tue Apr 10, 2018 9:35 pm
Forum: Ren'Py Questions and Announcements
Topic: "brightness pulse" when a character starts talking?
Replies: 16
Views: 6618

Re: "brightness pulse" when a character starts talking?

I can't help you with this one... it's more a Renpy thing than Python. As I said on my last post, I'm sure there must be a way to define a single pulse and use it for all images, but I don't know ATL that much (I'll get there soon), so I don't know how to write an ATL block with a variable image nam...
by Lord Hisu
Sun Apr 08, 2018 7:03 pm
Forum: Ren'Py Questions and Announcements
Topic: Visual novel help ;-;
Replies: 54
Views: 6513

Re: Visual novel help ;-;

StarsongKG wrote: Fri Apr 06, 2018 3:33 pm Okay! Btw do you know how to move them back cause now i see a big face of the character on the right side of the game xD
You need to transform it back to zoom 1.0, or hide the image.
by Lord Hisu
Sun Apr 08, 2018 7:00 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Identify character during callback
Replies: 5
Views: 2114

Re: [SOLVED] Identify character during callback

Ooh thanks! I may still have use for it down the line. So I looked up the python documentation on functool partial and got lost, but I assume ultimately it calls the function name as defined in the first argument, and the remaining arguments will be passed to said function? How the hell do you even...
by Lord Hisu
Thu Apr 05, 2018 7:37 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Identify character during callback
Replies: 5
Views: 2114

Re: [SOLVED] Identify character during callback

If you want to use callbacks: https://lemmasoft.renai.us/forums/viewtopic.php?f=8&t=48870#p482245 This was meant to remember the last character who spoke and do something with the image. Look at how I pass the parameter to the callback. This is probably the third or fourth time I reuse this answ...
by Lord Hisu
Wed Apr 04, 2018 11:20 pm
Forum: Ren'Py Questions and Announcements
Topic: Visual novel help ;-;
Replies: 54
Views: 6513

Re: Visual novel help ;-;

That "something" is anything that evaluates as True or False.

Code: Select all

1 < 5 # This is True
"abc" == "abc" # This is True
42 == 5 # This is False
by Lord Hisu
Wed Apr 04, 2018 1:22 am
Forum: Ren'Py Questions and Announcements
Topic: Visual novel help ;-;
Replies: 54
Views: 6513

Re: Visual novel help ;-;

You should indent your code. That means 4 spaces to the right every time ":" appears on your code. Like this: label start: "This code is indented." "Note that if I add something that requires a new block, like an if statement..." if True: "Then you need to move 4 s...
by Lord Hisu
Tue Apr 03, 2018 2:47 am
Forum: Ren'Py Questions and Announcements
Topic: Overlay that moves on mouse movement
Replies: 3
Views: 522

Re: Overlay that moves on mouse movement

Yes, it is possible. You should use Sprites.
The example there is the opposite of what you want, but it will help you to move on the right direction. You'll need to code, though. I hope that's not a problem.
by Lord Hisu
Mon Apr 02, 2018 9:31 pm
Forum: Ren'Py Questions and Announcements
Topic: Jigsaw Puzzle Help [Solved!]
Replies: 15
Views: 2335

Re: Jigsaw Puzzle Help

It is possible because it is a dictionary. A dictionary maps "anything" to "anything". So you could map a string to a list, a number to another dictionary or even a tuple to a displayable. I just realized that I've been programming in Python for almost 6 years and never really u...
by Lord Hisu
Mon Apr 02, 2018 6:24 pm
Forum: Ren'Py Questions and Announcements
Topic: Overriding an ATL transformation breaks graphics
Replies: 6
Views: 1329

Re: Overriding an ATL transformation breaks graphics

I don't know how to solve your problem, but I'm following this topic since I came across this not long ago and wish to know how to proceed for future reference.
by Lord Hisu
Mon Apr 02, 2018 6:14 pm
Forum: Ren'Py Questions and Announcements
Topic: Jigsaw Puzzle Help [Solved!]
Replies: 15
Views: 2335

Re: Jigsaw Puzzle Help

I think the problem is in the double indexing in piecelist[i,j]. If you want an index to be comprised of two values, you need to present them as a tuple. This is even possible in Python? I never heard of it. I think... piecelist[i][j] ...is what you want. Remember that i and j only exist inside for...
by Lord Hisu
Mon Apr 02, 2018 2:09 am
Forum: Ren'Py Questions and Announcements
Topic: Creating shifting background when character changes
Replies: 7
Views: 792

Re: Creating shifting background when character changes

A few days ago a someone wanted to add a pulse effect when some character talks for the first time, but without manually telling Renpy to do the effect every time. I think what you want is basically the same thing, but instead of a pulse, you want a transition to happen. Here's the topic: https://le...
by Lord Hisu
Thu Mar 29, 2018 10:19 pm
Forum: Ren'Py Questions and Announcements
Topic: On Injecting GUI Features via Standalone Files
Replies: 3
Views: 461

Re: On Injecting GUI Features via Standalone Files

Maybe you could redefine the original screen, overwriting it. I don't really know if Renpy will let you do that, though.

You could create a brand new screen and bind some keyboard button to it. That could work.
by Lord Hisu
Thu Mar 29, 2018 10:11 pm
Forum: Ren'Py Questions and Announcements
Topic: Adding a love meter?
Replies: 1
Views: 488

Re: Adding a love meter?

Maybe something like this?

Code: Select all

init:
    default love = 0
    
label start:
    menu:
        "Should I talk to him?"
        "Yes":
            $ love += 1
        "No":
            pass
    "Current love: [love]"
    jump start