cant get it started!

Power at both coil and resistor..gauges working.. Still no spark while turnin the key. But while turning the key off it sparks ?