How do you do the effect where like, an object moves, but its texture doesn't

I don’t have any code to share, and i have no idea how to do it, so… help.

Take a real sprite and a mask sprite, and use the mask extension to use the mask sprite as a mask of the real sprite. You can then move around the mask object, without moving the original object with the actual image.

If you make your object a Tiled Sprite then you can change the tile offset to be equal to the objects position and it will achieve a similar effect.