Squize is right... You haven't really explained your game's engine... This question is just generic. And yes you want to make the player jump, but higher, after collision with the spring.