Currently, I am trying to put animation in my main menu over my image map. My current code is
Code: Select all
init -2 python:
layout.imagemap_main_menu("main_menu.png", "main_menu2.png", [
(0, 185, 145, 261, "Start Game"),
(0, 269, 145, 345, "Load Game"),
(0, 357, 178, 452, "Preferences"),
(608,0,787,89, "Quit"),
])
Code: Select all
image ctc = anim.Filmstrip("sakura.png", (20, 20), (2, 1), .30,
xpos=760, ypos=560, xanchor=0, yanchor=0)
I realize that I am putting the image outside of the init -2 python, but whenever I put it in the code for the main menu inside init -2 python, I get an error.
Let me give you an example of what I'm trying to do, to better clarify.
I want my game to load up with the appropriate image maps, which are working correctly right now. I also want a animation, say rain, to come down from the left or right side of the screen to the bottom. I need help making the appropriate code for image ctc and where to impliment it into the code.
I know I am asking a lot, but perhaps this would clarify it for a lot of people.
Thank you,
Helveds