x


gui text update on triggerenter

pls guide me to bypass below issues in my game:

  1. When player ball reached the destination trigger then how can i display the score in gui text?
  2. 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!!!!

more ▼

asked Jun 24 '12 at 09:46 PM

ghostreddy gravatar image

ghostreddy
0 3 9 11

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?

Jun 25 '12 at 07:13 PM ghostreddy
(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

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;
}
more ▼

answered Jun 25 '12 at 12:37 AM

UEUNO gravatar image

UEUNO
16 1

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?

Jun 25 '12 at 07:13 PM ghostreddy
(comments are locked)
10|3000 characters needed characters left

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?

more ▼

answered Jun 25 '12 at 07:37 PM

ghostreddy gravatar image

ghostreddy
0 3 9 11

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2484
x981
x23

asked: Jun 24 '12 at 09:46 PM

Seen: 433 times

Last Updated: Jun 25 '12 at 07:37 PM