This is a very small thing that I never thing of until I'm in the last rounds of polish with my game, but remember, pop your text whenever anything updates. I threw this script on virtually every piece of the UI in Nuclear Lizard Island Rampage after I brought the game to test and a convention and I kept getting comments like "You should really have [Any Text] as part of the UI" and then I would point out that specific thing as part of the UI that they just weren't looking at. So, change your text color, change the size, maybe have some audio along with it. Let's get into it.
There are only three blocks in this and they're mostly self-explanatory. We pop the text size to 1.5 with a Set Local Scale and at the same time change it to a vibrant green with Text - Set Color, or if it's a UI element showing the player getting hurt, maybe choose red text. We then Wait for 0.4 seconds and then use the same blocks in reverse to set the text back to the neutral white and the local scale back to 1,1,1. Keep in mind, you will have whatever block starts this script set as a "coroutine" or the Wait block will break your game.
Thanks for reading. If you want more maybe buy the game this script came from or just throw me something on Ko-Fi and I can justify making some more Visual Script write ups. I have a lot of other half-baked scripts to share.
No comments:
Post a Comment