[Solved]There is a problem with the use of flash and fade.

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
spica911
Newbie
Posts: 3
Joined: Sat Nov 11, 2017 9:58 pm
Contact:

[Solved]There is a problem with the use of flash and fade.

#1 Post by spica911 »

Nice to meet you. I have just used Ren'Py as a starter.
I set up the flash and fade for practice as follows.

define Fade = Fade(1.0, 1.0, 2.0)
define flash = Fade(0.1, 0.2, 0.5, color="#FFFFFF")
define flashred = Fade(0.5, 1.0, 0.5, color="FF0000")

However, when I try to run the practice game, I get the following error:

I'm sorry, but an uncaught exception occurred.

While running game code:
File "game/script.rpy", line 4, in script
define flash = Fade(0.1, 0.2, 0.5, color="#FFFFFF")
File "game/script.rpy", line 4, in <module>
define flash = Fade(0.1, 0.2, 0.5, color="#FFFFFF")
TypeError: Fade() got multiple values for keyword argument 'color'

-- Full Traceback ------------------------------------------------------------

Full traceback:
File "game/script.rpy", line 4, in script
define flash = Fade(0.1, 0.2, 0.5, color="#FFFFFF")
File "C:\Users\User\Desktop\renpy-6.99.13-sdk\renpy\ast.py", line 1882, in execute
value = renpy.python.py_eval_bytecode(self.code.bytecode)
File "C:\Users\User\Desktop\renpy-6.99.13-sdk\renpy\python.py", line 1788, in py_eval_bytecode
return eval(bytecode, globals, locals)
File "game/script.rpy", line 4, in <module>
define flash = Fade(0.1, 0.2, 0.5, color="#FFFFFF")
File "C:\Users\User\Desktop\renpy-6.99.13-sdk\renpy\curry.py", line 38, in __call__
**dict(self.kwargs.items() + kwargs.items()))
TypeError: Fade() got multiple values for keyword argument 'color'

Windows-8-6.2.9200
Ren'Py 6.99.13.2919
practice 1.0



If I define a single fade and run the game, the game runs without any problems.

Since I am not an English user, I have had a lot of trouble writing this article. Please let me know if there is something wrong with the board rules. I hope you will find a lot of help.
Last edited by spica911 on Sat Nov 11, 2017 11:17 pm, edited 1 time in total.

User avatar
Divona
Miko-Class Veteran
Posts: 678
Joined: Sun Jun 05, 2016 8:29 pm
Completed: The Falconers: Moonlight
Organization: Bionic Penguin
itch: bionicpenguin
Contact:

Re: There is a problem with the use of flash and fade.

#2 Post by Divona »

Code: Select all

define fade = Fade(1.0, 1.0, 2.0)
define flash = Fade(0.1, 0.2, 0.5, color="#FFFFFF")
define flashred = Fade(0.5, 1.0, 0.5, color="FF0000")
Completed:
Image

spica911
Newbie
Posts: 3
Joined: Sat Nov 11, 2017 9:58 pm
Contact:

Re: There is a problem with the use of flash and fade.

#3 Post by spica911 »

Thank you very much! Now the game is running without any problems!

Post Reply

Who is online

Users browsing this forum: Google [Bot]