Character Jump

sakshi2212

03-04-2008 09:28:32

I am trying to make my character jump only till a particular height but like a fast movement, like in 2D games such as Aladdin or something. I went through the character class topic in the forum and I am use the same function of setting the linear velocity. But if I give a high jumpheight value, it goes up real high, if a low values, it jumps very slowly in the direction in which I moved it. I am not sure how to get a quick fast movement. Also does anyone have an idea about how to jump and kill, I am trying to use ray collision for that.

rewb0rn

03-04-2008 21:39:31

Guess you should try a higher or lower gravity and adjust the jump force, I had a similiar problem once, I think doing so fixed it, but it was some time ago.

sakshi2212

03-04-2008 23:02:29

You mean increase the gravity of the whole world?

rewb0rn

03-04-2008 23:17:46

Yea or decrease while changing the jump force, I think playing around with those values solved the problem for me. Imagine someone jumping on the moon. Or maybe increase the linear damping when your player jumps too high..

sakshi2212

04-04-2008 16:36:47

Thanks it works!