derikvlog, why would you have solid behavior on the object if you did not want solid behavior?
You can turn it off dynamically, but it sounds like you need more than one sprite. Ones that you can move through (no solid behavior) and ones you can't (solid behavior).
If you really do want to ignore solid behavior temporarily you can alter the state, on the collision or some other event.
Solid actions
Set enabled
Enable or disable Solid for this object. Be careful not to trap objects by enabling the solid when an object is overlapping it; see Avoid crushing/trapping objects with Solids.
https://www.scirra.com/manual/104/solid
Man, this behavior I know use. The problem is ...
I'm making a game where the enemies are walking from one side to another, within a "fence". Play more need to go through that fence.
PS: I want only the enemies collide with the fence (solid behavior), the PLAY pass by it normal.