ZombieSquirrel
Member
Hi everyone,
I was wondering if it is possible to do a very specific in-game sprite transformation: bending a sprite. Imagine a tree in the wind. You'd want the top half part to gradually rotate with the wind, but not the base. The only good example I can think of is when you hit a tree with an axe in stardew valley. Only the top parts seem to be manipulated. I really want to include a ''storm wind'' effect to the trees in my game, but I don't want to draw each individual frame. I'd love to code a script of sorts, that could rotate the top half by 1 degree for example. The top quarter rotates an extra degree. The top eight part rotates another, and so on. This would create an illusion of an object bending only on its top part.
I was wondering if it is possible to do a very specific in-game sprite transformation: bending a sprite. Imagine a tree in the wind. You'd want the top half part to gradually rotate with the wind, but not the base. The only good example I can think of is when you hit a tree with an axe in stardew valley. Only the top parts seem to be manipulated. I really want to include a ''storm wind'' effect to the trees in my game, but I don't want to draw each individual frame. I'd love to code a script of sorts, that could rotate the top half by 1 degree for example. The top quarter rotates an extra degree. The top eight part rotates another, and so on. This would create an illusion of an object bending only on its top part.