Project RBH DevLog 0150 (Patreon)
Content
There’s a technique called nine-slicing. I almost feel silly for forgetting about it, but to be fair I don’t use it often. The basic idea is that I can take a sprite and divide it into nine sections, which will scale differently. The corners never change, the borders stretch along their respective axes, and the center then stretches to fit. It’s extremely useful for making UI boxes and windows of various sizes. I used it for the barrier.
As you can see, the single square sprite animation becomes two different rectangles without any difficulty.
The actual animation itself was pretty straightforward to make. A bit of gradient trickery combined with transparency to make it fade in and out ever so slightly, while using a similar trick on an expanding square shape. Making sure that the square expanded the correct amount each frame was a little tedious, but not exactly hard.
Until Next Devlog!
-DeusVerve
DevLogs like these are brought to you by Patron(s) like Haelerin!