ImageDissolve inside ATL?

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
KiloTango
Regular
Posts: 138
Joined: Thu Mar 06, 2014 9:12 am
Projects: The Lighthouse (NaNoReNo14)
Organization: Starship ★ Palindrome
Location: UK
Contact:

ImageDissolve inside ATL?

#1 Post by KiloTango »

Maybe an odd one, and I might be approaching this from the wrong angle...

I have an imageDissolve animation that gradually brings something in line by line over 60 seconds, but I'd like to run this while the rest of the game is running, rather than the game wait for the 60 seconds to bring it all in.

I know atl animation can run while the game carries on, is there a way to do the same thing with an imageDissolve?
ImageImageImage

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: ImageDissolve inside ATL?

#2 Post by PyTom »

Code: Select all

image bg new slowid:
     "new.png" with ImageDissolve(...)

show bg old
show bg new slowid
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
KiloTango
Regular
Posts: 138
Joined: Thu Mar 06, 2014 9:12 am
Projects: The Lighthouse (NaNoReNo14)
Organization: Starship ★ Palindrome
Location: UK
Contact:

Re: ImageDissolve inside ATL?

#3 Post by KiloTango »

I just tried

Code: Select all

  image noiseCreep:
    Animation(noise, 0.12, noise2, 0.12, noise3, 0.12) with ImageDissolve('transitions/scanlines.jpg', 60, ramplen=8, reverse=False, time_warp=quad_in_time_warp)

(...later...)

    show noiseCreep
but it's just doing a normal fast dissolve in of the animation instead of applying the image dissolve. It managed to apply the dissolve to the animation when I was just doing it with imageDissolve as a normal transition so I assume it is possible to do an image dissolve on an animation...
ImageImageImage

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot]