John Jojo wrote:
I am trying to make a simple animation, and this is what I have.
from livewires import games, color
games.init(screen_width = 1000, screen_height = 1000, fps = 50)
class Animation(games.Sprite):
files1 = ["stick1.jpg"]
files2 = ["stick2.jpg"]
def __init__(self):
self.animate1()
def animate1(self):
act = games.Animation(images = Animation.files1,
x = 500,
y = 500,
n_repeats = 5,
repeat_interval = 5)
def animate2(self):
act = games.Animation(images = Animation.files2,
x = 500,
y = 500,
dy = 1,
lifetime = 5 * games.screen.fps,
repeat_interval = 5,
after_death = games.screen.quit)
Syntax error! Did you mean after_death = games.screen(quit)?
def main():
wall_image = games.load_image("class.jpg", transparent = False)
games.screen.background = "">
animater = Animation()
games.screen.add(animater)
games.screen.mainloop()
main()
I use the after_death item because it is used for the
games.Message() command and I thought it would do the same thing here.
What is "same thing"?
It doesn't.
What's the evidence?
So does anyone know the command to show after an animation is
over???
Show what?
_______________________________________________
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
--
Bob Gailer
919-636-4239 Chapel Hill, NC
|
_______________________________________________
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor