Hi, so this thing I'm working on is intended to basically toggle whether or not something is activated or not upon a press of the spacebar. Basically I have an item that sits in the room and I want it to be so that when I press spacebar it toggles between that item and a different sprite object. I can get it to go one way fine by saying "On Space pressed Spawn Plant && Destroy Pod" but I would like it to be a togglable, so that I can press space and it will either destroy the Pod and spawn the Plant, or vice versa.

I'm just really struggling with the syntax of this and am not really sure how to structure my events to do this. I played with instance variables but none of them really accomplished what I wanted to tell them to do.