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

Provide API for adjusting position of rendered images in relation to their Sprite object. #292

Open
AstraLuma opened this issue Jun 13, 2019 · 1 comment
Labels
discussion Issues that more just discussing than specific flaws or features feature

Comments

@AstraLuma
Copy link
Member

Add a __position__ to BaseSprite used by the renderer.

This allows a separation of the logical position with the graphical position, for purposes of effects (jitter/shake, apparent frame rate reduction, etc).

@AstraLuma AstraLuma added the discussion Issues that more just discussing than specific flaws or features label Jun 13, 2019
@pathunstrom
Copy link
Collaborator

I've been considering an alternative to this which would be something along the lines of image_offset which could be in pixels or also in game units to allow you to move the image center based on an offset from the sprite center.

@pathunstrom pathunstrom changed the title Add a __position__? Provide API for adjusting position of rendered images in relation to their Sprite object. Apr 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Issues that more just discussing than specific flaws or features feature
Projects
None yet
Development

No branches or pull requests

2 participants