Re: [pygame] [ROOKIE] Best way to manage jump movement

2012-04-20 Thread Dan Uznanski
If you want the merest touch of the jump key to cause a full strength jump, just kick up the vertical component of the character's velocity vector (ensuring of course that the character is not already jumping, etc) and apply gravity normally. If you want a longer keypress to give a higher jump, th

[pygame] [ROOKIE] Best way to manage jump movement

2012-04-20 Thread NesKy
Hello everyone, I've been for some days trying to develop a "canabalt"-like game ( http://www.canabalt.com/), saving distances... I've got the way to manage scroll, buildings appearances, distance between them, etc. Where I'm getting stucked is making the jump movement, and I left this for the