Skip to content

Creating a reference to SpriteLists upon creation #2688

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

Closed
Aurimukstis1 opened this issue May 19, 2025 · 2 comments · Fixed by #2689
Closed

Creating a reference to SpriteLists upon creation #2688

Aurimukstis1 opened this issue May 19, 2025 · 2 comments · Fixed by #2689

Comments

@Aurimukstis1
Copy link

It's been suggested I raise an Issue here for this;

# example
my_scene = arcade.Scene()
my_sprite_list = my_scene.add_sprite_list("my_sprite_list")

Here simply we cannot get the reference for the SpriteList by calling it's creation, because in the Arcade code, it returns a None type
It would be a simple change, making it not needed to write an unnecessary extra line like:
my_sprite_list = my_scene.get_sprite_list("my_sprite_list")

@eruvanos
Copy link
Member

I stumbled about the same, so let's change that :)

Do you want to create a PR or should I do it?

@Aurimukstis1
Copy link
Author

I stumbled about the same, so let's change that :)

Do you want to create a PR or should I do it?

I have no idea how to, so go ahead.

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

Successfully merging a pull request may close this issue.

2 participants