Script Issues

Well I have a movement script I move just how I want but now I am adding a jump and fall for the player cause it is linV and doesnt seem to fall on its own.

My issue is that the player will get stuck on the side of the ledge on the platform were I should be running straight off I lock up on that spot unable to move character only look around …

I also have trouble making him go up ramps without it slowing down soooo bad >.<

I would appreciate it if anyone could help.

Attachments

basics.blend (171 KB)

Try lowering the friction on the materials. Also, if ramps are a problem, perhaps you should try manually doing it yourself; for example, if you’re moving against a ramp, then move the character upwards slightly, to help him go up the ramp. Really, if a real person moved against some stairs or a ramp without moving his legs upwards, then he wouldn’t climb them (he would just trip). I would suppose it’s impractical for us game developers to assume that one should be able to slide up a ramp without any upwards velocity, and still not lose too much horizontal speed; so it’s probably a good idea to apply some (just a little) z-axis upward movement when climbing things.

Ok I believe I got the ramp figured out I still get stuck on wall edges of a platform to just run off It it stops I think its cause of the jumping script but I am really haveing trouble fixing I need to replace the jumping script with a script that lets you jump and whenever your in the air not on ground it pulls you down until touchs a floor cause linV floats down >.<

Could anyone make or edit the one over to do that ? it needs to have when fall off something it pulls down and when you jump it rises you up and then it pulls you down. I will keep trying to do this but unless I post a reply on this page saying I got it I still need helps to get a working script do so >.< THANK YOU SO MUCH !

I think you can do that with switching states. If you’re using a script, use a separate jumping Motion actuator and activate it only for a frame; after that, deactivate the actuator.

I am finding linV a pain in the butt …It might take me a few more rays but I can change that later IF i get more experienced to understand the stuff enough. >.< Owell Ill experiment Idk

You know that linV sets a directed velocity to the object whenever you activate the actuator? Other forces (e.g.gravity) will be overwritten in this case except collisions.

The stuck problem you got is due to the bounding set to box. Try with sphere that makes you slide better over small obstacles.

You know that you have a ray ensuring you are not falling down a platform?