I'm no shader expert, but I don't think your request is possible - at least the animate them with a tween part. However, you could dynamically create a set of new images that are each some smaller portion of an original source image. Then, those new images could be assigned to some appropriate node (maybe a Sprite
) which could then be animated via a tween.
The main thing you'd need is the ability to create a new image from a piece of an original image. That's what the Image.blit_rect(...)
function does.
https://docs.godotengine.org/en/stable/classes/class_image.html?highlight=image#class-image-method-blit-rect
So, you'd basically need to:
- Loop over the original image and extract small pieces into new Image objects via
blit_rect()
.
- Assign each image to an appropriate node for animation (
Sprite
for instance)
- Build a tween to animate the resulting nodes as necessary