How to make a character jump farther if more force is applied

Hey everyone,

I wanted to find out how to make my character jump farther if more force is applied, or if the screen is touched longer. I currently have jump set up. The the variable I am using to control the jump is ‘monster.accel’. Here is my touch function for the jump:

[code]
function touched( event )
if(event.phase == “began”) then
if(event.x < 241) then
if(onGround) then
monster.accel = monster.accel + 27
end
[import]uid: 175550 topic_id: 30912 reply_id: 330912[/import]

It’s better to make one thread than to create dupes.

http://developer.coronalabs.com/forum/2012/09/12/how-make-character-jump-farther-if-screen-touched-longer

See answer there. [import]uid: 52491 topic_id: 30912 reply_id: 123653[/import]

i made it specific so i could get specific help, i was not able to apply the other one effectively in my game [import]uid: 175550 topic_id: 30912 reply_id: 123718[/import]

It’s better to make one thread than to create dupes.

http://developer.coronalabs.com/forum/2012/09/12/how-make-character-jump-farther-if-screen-touched-longer

See answer there. [import]uid: 52491 topic_id: 30912 reply_id: 123653[/import]

i made it specific so i could get specific help, i was not able to apply the other one effectively in my game [import]uid: 175550 topic_id: 30912 reply_id: 123718[/import]