extensions
extensions copied to clipboard
[Tweening] Allow running tweens in a new thread
When making an animation using the Tweening extension, I often find myself having to use other extensions to make new threads to run multiple tweens in the same block stack. I would want to move a sprite on the X position but also have it rotate at the same time it's moving.
(Example is using blocks not from TurboWarp but you get the point.)
This is a bit more annoying for me considering my original PR (#766) allowed this functionality, while the merged PR (#851) doesn't. I wouldn't use my solution anymore since the new PR does use a better method of handling the tweens, but it would be nice if the extension allowed for it.
This would be my preferred solution:
I would make a PR to add this but I don't know the best (or rather, "turbowarp extension code clean") way to do it since it uses stack frames.
What extension did you use for new threads?
Oh wait, looks like it doesn't exist.
What extension did you use for new threads?
controls+ it is in pull requests, but this is NOT the place to ask
When making an animation using the Tweening extension, I often find myself having to use other extensions to make new threads to run multiple tweens in the same block stack. I would want to move a sprite on the X position but also have it rotate at the same time it's moving.
(Example is using blocks not from TurboWarp but you get the point.)
This is a bit more annoying for me considering my original PR (#766) allowed this functionality, while the merged PR (#851) doesn't. I wouldn't use my solution anymore since the new PR does use a better method of handling the tweens, but it would be nice if the extension allowed for it.
This would be my preferred solution:
I would make a PR to add this but I don't know the best (or rather, "turbowarp extension code clean") way to do it since it uses stack frames.
I agree with adding this, I have also ran into similar issues with having to use a new thread
i guess you don't really need to use a thread, you could just store some metadata somewhere and then do the tweening in a loop in AFTER_EXECUTE
Meanwhile, the tweens: AAAAA, gotta go see the Minecraft Movie! AAAAAAAAAA! WE GOTTA GO!