Cobras spit projectile venom in an arc before moving a small distance and firing again. Upon reaching a wall or edge, they turn around. Much like Snakes, Cobras sitting on a single-tile-wide platform will sit still and not turn around, so they can be approached safely from behind.
Cobra spit will also damage and potentially kill other characters (including Damsels and other Cobras).
Much like Snakes, Cobras die easily to any attack. Unlike Snakes, their ranged venom makes them dangerous to approach from the front. It is best to engage a Cobra from behind or above, killing it with a jump or a whip. Cobras in areas where they frequently change direction, such as two-tile-wide platforms, are best avoided unless they can be jumped on, as their venom will cover both directions equally.
Because Cobras rarely spawn outside of pots they are usually easily whipped once they emerge from their ceramic prison, as they will not spit venom immediately.