- Home /
Scrambling Letter - Visual Effect
Hello Y'all!
Right, I am going to attempt to make a visual effects aid in my game. Basically, when the game is loading, on the preload screen is going to be a line of text that is complete random, and each letter changes to another random letter.
So it gives the effect of a 'scrambled encryption' being decrypted.
You tend to see these in army games in the pre loader as if its some kind of UAV.
I was thinking about Random.Range ... but this only applied to numbers. What about characters?
I'm just trying to gain ideas here really - would appreciate your input
Answer by Eric5h5 · Jun 16, 2011 at 08:46 PM
Characters are numbers, they're just referred to slightly differently to make it easier for puny humans. Everything is a number...the only thing computers do is numbers.
function Start () {
var string = "";
for (i = 0; i < 20; i++) {
string += System.Convert.ToChar(Random.Range(32, 127));
}
Debug.Log (string);
}
Your answer
Follow this Question
Related Questions
What is the best way to draw visual helper (skill shoot helper) ? 0 Answers
FadeIn/FadeOut GUI Menu and Text 1 Answer
Elements in draggable window do not remain fixed [SOLVED] 2 Answers
How do I set up a GUI around multiple cameras? 1 Answer
Could I display XML content in Unity GUI interface? 0 Answers