Making Characters Invisible

Started by Swamp Witch, Fri 09/09/2005 04:28:45

Previous topic - Next topic

Swamp Witch

When working with a first person game and using two characters, how do I make the second character invisible?  Example, each room is set with the "Hide Player Character" checked.  If character one moves around the rooms, he/she is invisible.  When character one goes into a room where character two is, you can see the character 2.  How do I make character 2 invisible?

strazer

There are several options:

(- Put the character in room -1)
- Move the character off-screen
- Assign the character a blank view
- Set the character's .Transparency to 100 and his .Clickable property to false
- Set the character's (undocumented) .on property to false. This has the same effect as the "Hide player character" checkbox:
  cPlayertwo.on = false;

The last one is probably the best solution in your case.

Swamp Witch

Thanks again.  Can you also tell me how to get an inventory item on a gui so that anytime an inventory item is picked up, a box will pop up with the inventory item in it?

SMF spam blocked by CleanTalk