Hi Folks,
I’m using this script here:
http://wiki.unity3d.com/index.php?title=ObjectLabel
only modified to: [RequireComponent (typeof (GUITexture))]
- mine requires: GUITexture instead of GUIText
However when i apply the script to an object on my Enemies it jumps and bugs out all over the screen when either the enemy moves or the player moves. Been trying to fix it for hours now but I can’t seem to work it out, any ideas?
Cheers.
You should apply the script component to a fresh and empty new game object or an game object only containing an GUITexture component. And not to the enemy game object himself.
The script changes the position of the game object it is attached to, so if you add it to an enemy, the script will actually move the enemy himself! (Which in turn causes your script to move the text. But the text is the same game object as your enemy, so the enemy gets moved again, and the text and the enemy and so on… causing the flickering 