- Home /
gui text update on triggerenter
pls guide me to bypass below issues in my game:
When player ball reached the destination trigger then how can i display the score in gui text?
when the player collides with the enemy ball the player have to lose one if his life and need to be to be displayed the lives left using gui text?
Thanks!!!!
Pls help me in the below problem:
when the player collides with the enemy ball the player have to lose one if his life and need to be to be displayed the lives left using gui text?
Answer by SmilingRob · Jun 25, 2012 at 12:37 AM
This video by Envatio shows you how to do it: http://www.youtube.com/watch?v=NKwKcVL8ARg
Basically OnTriggerEnter()you can set the GUITexture enabled property to true.
var completedImage : GUITexture;
function Start() {
// hidden by default
completedImage.enabled = false;
}
function OnTriggerEnter() {
completedImage.enabled = true;
}
Pls help me in the below problem:
when the player collides with the enemy ball the player have to lose one if his life and need to be to be displayed the lives left using gui text?
Answer by ghostreddy · Jun 25, 2012 at 07:37 PM
Pls help me in the below problem:
when the player collides with the enemy ball the player have to lose one if his life and need to be to be displayed the lives left using gui text?
Your answer