[Solved] ATL and ImageDissolve Problems

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
User avatar
spongy
Newbie
Posts: 10
Joined: Mon May 20, 2013 2:40 am
Projects: Theater Magica: The First Act
Location: Philippines
Contact:

[Solved] ATL and ImageDissolve Problems

#1 Post by spongy » Sun Aug 25, 2013 7:31 am

Hello. I apologize if there's already a thread about this/these but I can't seem to find any. First of all, my problem with ATL. I'm trying to implement series of gold colored image dissolving transitions in a background. This is my method:

Code: Select all

image bg bookgoldenflash:
    "book.png" with goldenflash
    pause 1.0
    "book.png" with goldenflash
    pause 1.0
    repeat
The code is before the label start, I'm not sure if it's suppose to be there for it to work, and since I'm defining an image, I'm assuming it's the proper place to put it. How do I call that animated image into the actual game script? I used

Code: Select all

scene bg bookgoldenflash
but I don't know if it does work because my ImageDissolve won't work too.
I defined goldenflash with

Code: Select all

init:
    define goldenflash = ImageDissolve("golden_transition.png", 2.0, 8)
but for some reason, it doesn't work, and only shows the same background.
If there's a better way to implement the flash thing, please do tell.
Last edited by spongy on Sun Aug 25, 2013 8:23 am, edited 1 time in total.

User avatar
Alex
Lemma-Class Veteran
Posts: 2981
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: ATL and ImageDissolve Problems

#2 Post by Alex » Sun Aug 25, 2013 7:43 am

The dissolve transition is showing a new image and hiding an old one at the same time, so when you show the same image with dissolve there will be no visible changes.
Maybe a fade transition is what you are looking for?
http://www.renpy.org/doc/html/transitions.html#Fade

User avatar
spongy
Newbie
Posts: 10
Joined: Mon May 20, 2013 2:40 am
Projects: Theater Magica: The First Act
Location: Philippines
Contact:

Re: ATL and ImageDissolve Problems

#3 Post by spongy » Sun Aug 25, 2013 8:22 am

Thanks! Sorry, not very good at scripting. I was thinking that the function of ImageDissolve was to show an image then remove it slowly by reducing it's opacity. Anyway, I did use fade, but the effect wasn't good enough. I used ImageDissolve thinking that I can implement a fade-like transition, with circle glow. Thanks again.

Post Reply

Who is online

Users browsing this forum: _ticlock_