Skip to content

X offset for character sprites is inverted #1

@ThomasSinisi

Description

@ThomasSinisi

faceRight ? currentText->setCords(x-offsetX, ((y - 60) + offsetY)) : currentText->setCords((x+offsetX)-width, ((y - 60) + offsetY));

currently this line causes the offset for P1 to be read as positive values offset the sprite to the left instead of to the right. This is counter intuitive, and also the opposite of how the offset for collision boxes work. A simple flip of addition/subtraction of the x-offsets should fix this like so:

faceRight ? currentText->setCords(x+offsetX, ((y - 60) + offsetY)) : currentText->setCords((x-offsetX)-width, ((y - 60) + offsetY));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions