How?
I was use SDLx::Sprite::Animated, but my images in separate files like:
unit-run1.png, unit-run2.png, unit-run3.png, ...
I make simple child (in attach) but this strings not work:

my $full = SDLx::Surface->new(width=>$width, height=>$height);
$_->surface->blit($full) for @sprite;

I try SDLx::Sprite->draw but it not work too. I think I go to wrong way.
Please help me to do this.

P.S. What you think: this code (with fixes) can be added later in
SDLx::Sprite::Animated?


Roman V. Nikolaev

Attachment: AnimatedFiles.pm
Description: Perl program

Reply via email to