Gravity affecting continuously pressed button

mrpacogpmrpacogp Member Posts: 400
edited October 2012 in Working with GS (Mac)
Apologize about my english.
I have started one project. I have read all excelent guides.
I´m testing one issue... when i use higher values of gravity, my player actor stoped after a few seconds.
If i use values of 250 for gravity then my player move w/o problems, but the jump style is very slowly.
What is the best way to solve that? I want a jump fast, but only have it with higher values of gravity (around 1000)
Im reading alot of things on that forum, and rules, if this is a bad section to post that apologize and move it please.

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    first things first I would recommend using an accelerate down behavior for your actors gravity as opposed to the built in Gravity Behavior. Its more memory efficient. Not a huge deal for your problem but in the long run it will be better for you. Also make your accelerate down speed reference a Game Level Attribute that way all of the actors you are having affected by gravity you will be able to change the value for all in one place.

    Ok now to your issue.

    Once you have your gravity level set where you want. Your jump has to be powerful enough to overcome that level. if your Gravity is 1000 your accelerate up speed might need to be 1050. Its just a value you will have to play with until you get the 2 fine tuned to where you want it.
  • mrpacogpmrpacogp Member Posts: 400
    Acelerate down speed in atribute game could affect all actors... I want to test it, thanks you!!
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    it will affect all actors you use that attribute in place of a preset value yes. Otherwise if its not referenced its Not going to affect anything.
  • mrpacogpmrpacogp Member Posts: 400
    My english is a little poor.
    I`m using Gravity as Accelerate dow behavior, but there is the problem
  • mrpacogpmrpacogp Member Posts: 400
    edited October 2012
    I m testing with behavior accelerate down but the problem still remaining...
    Sometimes, i open my project, and then when i jump my player doenst have gravity, but i have the correct value... maybe a bug?
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    No your probably just not doing it right. let me see if I can find or make you a quick demo of what I'm saying to do.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Let me know if this helps explain it.
  • mrpacogpmrpacogp Member Posts: 400
    edited October 2012
    Tenrdrmer thank you to much for your example.
    I have used for acceleration a real number, w/o attribute for a game.
    I have used your settings and now i have a fast system jump L-)
    You are very good, thank you to much for that explained
    And values for Friction and Max Speed help me alot :=)
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
Sign In or Register to comment.