ok to do this you need (sprite object with 2 frame([open door,close door])
so these frames will be 0 and 1 put the speed of animation to 0 and put doors in the game so now the event:
event1:
condition1:player:collision with door
condition2:door: compare frame --> = 0
action1 :door: change frame = 1
action2 :door: solid disable
event2:
condition1:player:collision with door
condition2:door: compare frame --> = 1
action1 :door: change frame = 0
action2 :door: solid enable