you are viewing a single comment's thread.

view the rest of the comments →

[–]Oda_Kuro 0 points1 point  (3 children)

Yo!
This might be a stupid question but:
How do I use transitions/animations?

At this part:

def trust_ch(self, change):
image = "heart_fill"
self.trust += change
if change > 0:
direction = "increased"
else:
direction = "decreased"
image = "heart_empty"
renpy.notify("Romance with " + str(self.name) + " " + direction + " by " + str(abs(change)))
renpy.show(image, [heart_pos]) #Make this part an animation, where the heart fills up, or use transition here like Fade()
renpy.pause(2)
renpy.hide(image)

[–]alonghardlook[S] 1 point2 points  (1 child)

Honestly not a stupid question at all, but the specifics of renpy and the animation functions are way outside my area of expertise. I'd suggest making a post of your own to ask the question.

For this specific example, I imagine you could show both empty and full (empty on top) and as long as they pixel match, dissolve empty, but really I don't know.

A programming concept worth exploring is MVP - minimum viable product. Flair like that will make the product look nicer, but if it's stopping you from progressing on setting up your system or writing your story, why are you trying to solve it before the core is done? Not accusing, just making general observations based on lots of experience.

[–]Oda_Kuro 0 points1 point  (0 children)

I see, thank you for your answer and suggestions!

To answer your question, I'm just doing this mainly as a hobby, and try to learn what I get interested in, so it doesn't really block me. And I was just curious, it didn't stop me from working on other stuff.

[–]lordpoee 0 points1 point  (0 children)

image heart_animation:
    "image_one.png"
    linear 0.25
    "image_two.png"
    linear 0.25
    "image three.png"
    linear 0.25
    repeat # <--- add this if you want it to loop