david-pfx / PuzzleScriptNext

A direct successor to PuzzleScript, building on the work of PuzzleScript Plus, Pattern:Script and others.
http://www.puzzlescriptnext.polyomino.com
MIT License
15 stars 6 forks source link

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

Closed Draknek closed 2 months ago

Draknek commented 2 months ago

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

david-pfx commented 2 months ago

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.