Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kthakore opened this issue Jul 24, 2011 · 0 comments
Open

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

kthakore opened this issue Jul 24, 2011 · 0 comments
Assignees

Comments

@kthakore
Copy link
Member

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.

@ghost ghost assigned rshadow Jul 24, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants