Smoother jump boost

I am working on mimicking the control system for a game called Super Meat Boy. Right now I am working on the jump. The way the jump works is that you jump higher as you hold down the jump button longer. I feel like I have mimicked this well, but it just seems that half-way through the jump, the jump kind of “boosts” a bit. 

What I mean is that it suddenly picks up a bit of speed, and it is not as smooth as I would like it to be.

The project is really small, so here are the main and config.lua files:

I don’t know if any of you have ever played Super Meat Boy, but I am sure you should be able to see the speed boost mid-way through the jump. 

I think one way to do this is to apply linear impulse of a full jump in began, and if the touch ended earlier then a certain value, slows the jump. Not sure if it will mimics SMB jump though(haven’t play that in a long while)

Yeah, I could try that.

This also seems like a good approach, I’ll keep the code I wrote for both in case any problems arise. Thanks!

I’m just wondering if there are also other ways to go about this.

I think one way to do this is to apply linear impulse of a full jump in began, and if the touch ended earlier then a certain value, slows the jump. Not sure if it will mimics SMB jump though(haven’t play that in a long while)

Yeah, I could try that.

This also seems like a good approach, I’ll keep the code I wrote for both in case any problems arise. Thanks!

I’m just wondering if there are also other ways to go about this.