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

tween_length is incompatible with translated sprites and sprites larger than the tile size #78

Closed
Draknek opened this issue Aug 17, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Draknek
Copy link
Contributor

Draknek commented Aug 17, 2024

Describe the bug
Enabling tweens breaks some features, like

  1. translating sprites with e.g. translate:down:1
  2. sprites larger than the tile size being rendered with the bottom left-hand corner aligned with the tile

Reproduction Steps

  1. load example project https://puzzlescriptnext.polyomino.com/editor.html?hack=acfdae66917f81e67d957c9067438e59
  2. note that the player sprite correctly extends into the tiles above and below, because it's 7 tiles tall and has translate:down:1
  3. uncomment prelude line tween_length 0.1
  4. note that the player is cropped to 5x5, and the translate transform is ignored

What did you expect would happen?
Tweens should be compatible with translated sprites / large sprites

@Draknek Draknek added the bug Something isn't working label Aug 17, 2024
@david-pfx
Copy link
Owner

david-pfx commented Aug 21, 2024

Known problem. tween_length is implemented by the old PS+ render loop, which has no provision for transforms. It needs to be merged. See #68.

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
None yet
Development

No branches or pull requests

2 participants