"With dissolve" in ATL (Solved!)

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
10kNing
Regular
Posts: 51
Joined: Fri Apr 29, 2011 9:37 pm
Projects: Revenance (RPG), Mad-Love (GxB, on hold)
Location: NYC
Contact:

"With dissolve" in ATL (Solved!)

#1 Post by 10kNing »

The goal was to have a character shine in the light (how she smiles, my friend! my lucky friend!) and I decided that it didn't look at smooth without transitions between the sparkles, but then the sprite's empty space turned out black rather than transparent.

Code: Select all

    image maddie uni sparkle:
        "maddie/s1.png" with dissolve
        pause .2
        "maddie/s3.png" with dissolve
        pause .2
        "maddie/s2.png" with dissolve
        pause .2
        repeat
How do I do this without black space? Thank you for your time!

Edit: Yes! Thank you very much~!
Last edited by 10kNing on Fri Sep 28, 2012 9:02 pm, edited 1 time in total.

Graph
Veteran
Posts: 230
Joined: Sat Jul 03, 2010 7:22 pm
Completed: Touhou Mecha Chap. 1
Projects: Touhou Mecha, Eastern Starlight Romance
Organization: Dai-Sukima Dan
Contact:

Re: "With dissolve" in ATL

#2 Post by Graph »

Try this:

Code: Select all

"maddie/s3.png" with Dissolve(0.5, alpha=True)
0.5 is the length of the transition and the default value if you don't specify. alpha=true tells it to render transparency; I think it doesn't do this by default when switching images in an animated sequence.

Post Reply

Who is online

Users browsing this forum: No registered users