Triggering a second action with the same button


Hey there
I’m trying to do something really simple but I can’t for the life of me figure out how to do it,
The action is pretty simple.
Clicking a button expands an area and clicking it the second time collapses the area.
It’s the second part that baffles me. I cannot think of a way to add the collapsing part to the same object.

I tried to do it first with timelines but I cannot assign two things with the same action on one button.
So then I tried having two scenes.
With a click the timeline of the second scene is triggered and with a click of the button on that second scene I go back to the first scene. This way though I cannot make the collapsing animation work.

I’m obviously missing something here!
Any ideas/pointers?

Thanks in advance for your answer.

Basic question about timelines

Try this to get some ideas (21.8 KB)


I knew I was missing something!
The timeline way was exactly what I was looking for.
Thank you very much!


You’re welcome. Could you mark it as solved? Little box next to the chain, flag and pencil.