Skip to content

Animated NobleSprite renders at incorrect location. #91

@ClaireNeveu

Description

@ClaireNeveu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    To-do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions