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

create helper function allowing to import an entire folder of spritesheets #72

Closed
tsedan opened this issue Mar 27, 2022 · 1 comment
Closed
Labels
feature New feature or request
Milestone

Comments

@tsedan
Copy link
Member

tsedan commented Mar 27, 2022

Basically create a function that takes in a directory with spritesheet images, and import them all, adding them to an animation component automatically such that each filename (with extension removed) becomes the name for that respective animationstate.
i.e.:
I have a folder with idle.png and run.png, each of which is a spritesheet in which the individual sprites are the same size.
I run "import_from_folder(folder_dir)" and it imports all of the spritesheets into an animation object with the names "idle" and "run".

@tsedan tsedan added the feature New feature or request label Mar 27, 2022
@tinmarr tinmarr added this to the release 2.0 milestone Mar 29, 2022
@tinmarr tinmarr removed their assignment Mar 31, 2022
@mrElnekave
Copy link
Collaborator

Done on this commit: e56ddc0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants