Open and Close Door

I animated a door to do an animation from frame 0 to 10 so that it opens. I input this into logic editor so that when I press the left-click it opens, however I want it to also close when I left-click and so on. How do I achieve this? Thank you.

Attachments


I’m not sure what you are trying to do with properties, but here is a .blendDoorOpenClose.blend (451 KB), using the ping-pong thing in the action actuator.

if this doesn’t make sense I can clarify more.

Edit: BTW you have to left click on the door to open it

Thanks for your help!