Hi
Can you get a character e.g use a costume then only when they are in the costume they can enter a certain room?
Also anyway of restricting the GUI when in the costume?
(e.g to just walk)
How can you get the character to remove the costume?
It may not be a costume it could be some kind of transport.
This would be good to know before I change my game idea or start creating any sprites for it.
Thanks
adssaves
The way to do costumes is to create a copy of your character with the different costume. As for limiting the the characters actions to walk that is a fairly easy programming task.
I'm pretty new to AGS, but to only allow someone to enter somewhere witha costume\transport(may I ask what that is?) you need to set a variable to true when he wears the costume and then when he wants to enter you check for the state of the variable.
I think it's something like this, correct me if I'm wrong, or just check the manual:
If (GetGlobalInt(3)==1); {
//what you want to happen, i.e., him entering the place or whatever
else;
//him being told he can't enter or something
}
:)
Well, it's not that clear cut. To change costumes, you'll have to change the view of the character, which is fairly simple. It's just the limitations.
Like GinnyW said, you should set a global variable to a different number when the costume is on, and then have things check the variable.
if (GetGlobalInt(3)==1) {
do this;
}
else {
do something else;
}
(I know, it looks like GinnyW's, but hers had slight errors).
Anyway, it's semi-simple, but you'll have to read the manual to find the functions you need.
-DD