serious code problem
Posted: Tue Jan 22, 2008 9:47 pm
heres the code:
and for some wierd reason the door only opens if keyAmount's text number = 1 exactly,
can someone either fix this code or give me another code for this.
i also tryed this code but it had to equal zero to open the door is this a glitch?
- Code: Select all
if(keyAmount.textNumber == 1 || keyAmount.textNumber > 1 && animpos == 0)
{
ChangeAnimationDirection("Event Actor", FORWARD);
keyAmount.textNumber-=1;
}
and for some wierd reason the door only opens if keyAmount's text number = 1 exactly,
can someone either fix this code or give me another code for this.
i also tryed this code but it had to equal zero to open the door is this a glitch?
- Code: Select all
if(keyAmount.textNumber > 0 && animpos == 0)
{
ChangeAnimationDirection("Event Actor", FORWARD);
keyAmount.textNumber-=1;
}