extensions icon indicating copy to clipboard operation
extensions copied to clipboard

[Tweening] Allow running tweens in a new thread

Open JeremyGamer13 opened this issue 7 months ago • 6 comments

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.

Image (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:

Image

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.

JeremyGamer13 avatar Apr 27 '25 08:04 JeremyGamer13

What extension did you use for new threads?

astruegenius avatar Apr 27 '25 16:04 astruegenius

Oh wait, looks like it doesn't exist.

astruegenius avatar Apr 27 '25 16:04 astruegenius

What extension did you use for new threads?

controls+ it is in pull requests, but this is NOT the place to ask

yuri-kiss avatar Apr 28 '25 00:04 yuri-kiss

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.

Image (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:

Image

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

yuri-kiss avatar Apr 28 '25 00:04 yuri-kiss

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

GarboMuffin avatar Apr 28 '25 01:04 GarboMuffin

Meanwhile, the tweens: AAAAA, gotta go see the Minecraft Movie! AAAAAAAAAA! WE GOTTA GO!

PPPDUD avatar Aug 29 '25 14:08 PPPDUD