Help with imagedissolve [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
User avatar
Andredron
Miko-Class Veteran
Posts: 719
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

Help with imagedissolve [Solved]

#1 Post by Andredron »

Faced a problem.
I need 4 imagedissolve to work simultaneously.

Been to call them like that

Code: Select all


label start:
    scene black
    centered "text{nw}" with effec1, effec2, effec3
    with effec3, effec2, effec1
    pause 2.0
 
    centered "text2{nw}" with effec4, effec2, effec3
    with effec3, effec2, effec1
    
But it gives an error
Last edited by Andredron on Thu Feb 06, 2020 1:38 am, edited 1 time in total.

User avatar
dGameBoy101b
Regular
Posts: 31
Joined: Sun Aug 12, 2018 8:32 am
itch: dgameboy101b
Contact:

Re: Help with imageDissolve

#2 Post by dGameBoy101b »

This can be easily achieved by using parallel statements in an Animation and Transformation Language (ATL) block.
https://www.renpy.org/doc/html/atl.html ... -statement

Code: Select all

transform fourDissolve(new_img, d0, d1, d2, d3):
	#new_img is the name or filename of the image that should be dissolved to
	#each argument after new_img should be a float of how long each dissolve should last
	parallel:
		new_img with Dissolve(d0)
	parallel:
		new_img with Dissolve(d1)
	parallel:
		new_img with Dissolve(d2)
	parallel:
		new_img with Dissolve(d3)

label start:
	scene 'background0.png' at fourDissolve('background1.png', 0.05, 0.1, 0.2, 0.4)
PS. Next time you post on here it would be more helpful if you included the error message you got.


Post Reply

Who is online

Users browsing this forum: Google [Bot]