I'm finally at the point where I've been customizing the look of the game I've been writing on for a few weeks now. Unfortunately, I've hit a snag dealing with the syntax of what I'm trying to do. I want an animated textbox for my narration.
I already know you can change the text box using style.window.background. My question comes from wanting to use an ATL block to customize it even further and give it animation.
Code: Select all
style.window.background = Frame(frame1, 1, 1)
When I try to declare the animation in the script file, Renpy tells me frame1 is not defined. I then realized the options are initialized before my script files.
Code: Select all
image frame1:
"test01.png"
pause 0.5
"test02.png"
pause 0.5
repeat
style.window.background = Frame(frame1, 1, 1)
So I dropped the code into the options file, which resulted in Renpy telling me the syntax is wrong. I then realized the options are in Python. So either, what would be the Python equivalent, or how can I initialize that ATL block before the options?
I have this awful feeling I'm missing something obvious, but I've just about tried everything I could think of. Thanks for the help in advance!