Be a Supporter!

visibility

  • 183 Views
  • 3 Replies
New Topic Respond to this Topic
dludicrous
dludicrous
  • Member since: Jun. 26, 2007
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
visibility 2008-03-08 23:44:28 Reply

how do you make something visible with a cirtain score, and invisible without that score?
PLEASE help!

23450
23450
  • Member since: May. 28, 2003
  • Offline.
Forum Stats
Supporter
Level 27
Blank Slate
Response to visibility 2008-03-08 23:47:19 Reply

if (score == number) {
object._visible = false
} else {
object._visible = true
}
}

Not much else to it then a simple statement.


BBS Signature
dludicrous
dludicrous
  • Member since: Jun. 26, 2007
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to visibility 2008-03-08 23:54:52 Reply

At 3/8/08 11:47 PM, 23450 wrote: if (score == number) {
object._visible = false
} else {
object._visible = true
}
}

Not much else to it then a simple statement.

thanks but it didnt work, the object is visible even when you only have 1 score

Lard-lad
Lard-lad
  • Member since: May. 30, 2007
  • Offline.
Forum Stats
Member
Level 07
Blank Slate
Response to visibility 2008-03-09 03:22:51 Reply

At 3/8/08 11:54 PM, dludicrous wrote:
At 3/8/08 11:47 PM, 23450 wrote: if (score == number) {
object._visible = false
} else {
object._visible = true
}
}

Not much else to it then a simple statement.
thanks but it didnt work, the object is visible even when you only have 1 score

Well duh, you need to change the "number" part to "<=" and then follow it by the score you want it to appear at...


Just click the sig, idiot.

BBS Signature