Auroriax / PuzzleScriptPlus

Puzzlescript Plus: Open Source HTML5 Puzzle Game Engine (with lots of extra functionality)
https://auroriax.github.io/PuzzleScript/
34 stars 4 forks source link

Unintended tweens can play for turns that fail rigid #107

Open Auroriax opened 1 year ago

Auroriax commented 1 year ago

Describe the bug Working on a prototype of a game that uses rigid extensively. It seems that whenever rigid application fails, tweens are not reset for stuff that was able to move on the failed turn? Or something like that?

Reproduction Steps

  1. Load first level of example
  2. Drag the orange block down
  3. Animations play, even though that movement failed because of rigid.

What did you expect would happen? On rigid failure, tweens are wiped

OS & Browser version, desktop/mobile Windows 10, Firefox

Screenshots, example projects, other relevant issues, etc. Project: https://auroriax.github.io/PuzzleScript/editor.html?hack=da47e9851ea2f38db1e317a17359add3

ps+_bug_107

Monakrom commented 1 year ago

I like how that looks honestly. Maybe there can be some sort of prelude option to have that animation play on things that can’t move?