It's hard to explain. Try to shoot.
Fixed coding error in if block. Fixed touching color bug. Also, changed the direction variable, you can delete it now, didn't know there was a sensor block for another sprites' direction eh? Well, now you know! :D