Skip to content

SDLx::Sprite::Animated need random start frame #132

Open
@kthakore

Description

@kthakore

When I set many units on map they all move equally (in lockstep).
Now just one possible code to do that:

after constructor

$anim->next for 0 .. rand 10;

but this is very ugly =(

I think we need add param in constructor: randomize => 1, and/or param/function to set start frame manually.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions