Is this even remotely possible while sticking to the conventions of object oriented programming?
What I'm trying to do is access a boolean that is in my obstacle class, which is set when a certain image is set (if the object is on), so that if the player interacts with the object when it's 'on' it will call upon the death method in my player class.
I don't know if you need any of the code, but if you do, just say so.