![]() |
| I also changed the font |
Also a quick tip: It took me FOREVER to find this, so I thought I would post a little solution, myself. Getting GUI object the rotate is a lot easier than I thought. A lot of people said it was impossible. But the code looks something like this:
| It was a bitch to figure out, though. |
now keep in mind that this method has it's limitations. Basically, you can only rotate one thing per script (as for some reason, only one pivot point can be applied) and ANYTHING that is made in the GUI function below this script WILL ALSO ROTATE. So I had to make sure everything else was created before this line.
I also discovered that the GUI function will start updating twice as fast when a button on the keyboard is pressed (SUPER IMPORTANT) so the circle would spin faster when I did that. But I had to press buttons to make trees spawn. So, what I did was put the rotation angle in the actual update function (I set it at +0.5f every update) and it all seems to work. I also learned not to put more than a few debug logs in code that updates 1000+ times a second. Slows everything down.
This is all C#, by the way.

No comments:
Post a Comment