Invisible then Visible

Started by PsychicHeart, Sun 03/04/2005 05:08:21

Previous topic - Next topic

PsychicHeart

Hello. I want my game to have a challenge. There is an object, a ladder, and you can't get to it until you kill 5 people. How is it possible to do this? So that it is initially invisible, but then visible once you kill the 5 people?
Please help, Thank you. ??? ??? ???
Formerly known as Flukeblake, Flukezy etc.

monkey0506

In the object pane set the object to initially NOT visible.  Then when you want it on, use ObjectOn(OBJ_NUM); where OBJ_NUM is the number of the object.  That's pretty much it.

Flukeblake__

Uh... what exactly does that mean? Sorry I'm rather new to this and I don't know what the f*** you're talking about.
So.... uh.... if you could dumb it down a bit for me, that would be great.
THANKS!

Khris

Use a GlobalInt to keep track of the number of guys killed.
In the room's repeatedly_execute, check whether the GlobalInt's value is equal to 5, and if it is, turn on the ladder's object.

If you still don't know what the f*** we're talking about, you'll have to do it like everybody else:
Use these step-by-step instructions:

1. read the manual, read the faq, do the tutorial
2. experiment
3. learn the script language
4. experiment
5. solve your (really easy) problem on your own and pat yourself on the shoulder.

I don't wanna sound too mean, but you can't expect a step-by-step solution for every simple problem you have.
Plus, it's quite hard to help you with a few quick lines if we don't know more details about your problem, e.g. in which way are the people killed, do you use scripting all the time or only when it's necessary a.s.o.

SMF spam blocked by CleanTalk