Hi looking for any suggestions on a better way than what I have done:)
I've created my Map with space for doors, I have now created my doors, and was thinking how to have them block access when closed, allow when opened.
I decided to create a copy of the door, which was positioned in the same space as the original door occupies when opened, it is hidden until needed, then shown, and the animated door hidden, this allows the character to walk through doorway.
I'm using function keys to open and close at them moment.
I've created my Map with space for doors, I have now created my doors, and was thinking how to have them block access when closed, allow when opened.
I decided to create a copy of the door, which was positioned in the same space as the original door occupies when opened, it is hidden until needed, then shown, and the animated door hidden, this allows the character to walk through doorway.
I'm using function keys to open and close at them moment.
if KeyHit(62) ;open seq = 1 Animate doorchurch, 3, 0.2, seq, 10 opening = true EndIf if KeyHit(63) ;close seq = 2 ShowEntity doorchurch : HideEntity sparedoorCh Animate doorchurch, 3, 0.2, seq, 10 EndIf if Animating(doorchurch) = False And opening = True HideEntity doorchurch : ShowEntity sparedoorCh : opening = False endif