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

Animated NobleSprite renders at incorrect location. #91

Open
ClaireNeveu opened this issue Dec 10, 2024 · 0 comments
Open

Animated NobleSprite renders at incorrect location. #91

ClaireNeveu opened this issue Dec 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ClaireNeveu
Copy link

Describe the bug
If I create a NobleSprite with a spritesheet, it always renders at 0,0. I'm fairly certain this is a simple one-line fix but I wanted to make sure this wasn't intended behavior before making a PR.

To reproduce

local foo = NobleSprite("myImageTable", true)
foo:moveTo(150, 150)
foo:draw()

Expected behavior
I expect the animation to render at the sprite's location.

Screenshots/Code snippets
On this line, self.x and self.y should be passed to the draw method.

@ClaireNeveu ClaireNeveu added the bug Something isn't working label Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: To-do
Development

No branches or pull requests

1 participant