Why Oh Why?

GingerBGamesGingerBGames Member Posts: 390
edited November -1 in Working with GS (Mac)
Hello GS'ers,

Why does it seem to be so hard to get a good jump in Gamesalad? I've got a character that goes left/right, and jumps. Only the jumps doesn't work properly, I've used interpolate, and all other methods, timers, the whole thing! The character just bounces up and down like he's having a fit or something, then when he jumps, and is jumping to the left or right, it's like he glides down. I could just float the entire level with out actually doing anything else. If anyone knows how I can stop this please let me know. I've got gravity on this one actor. When not on the ground motion line Y down 2000. If someone else, know's a better way please let me know, i've seen all the templates out there and none work! Thank you.

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    dont have linear velocity for your gravity. Have a accelerate down behavior relative to scene in whatever you want to be affected by gravity. have that on all the time, not just when your not on ground

    and wheenevr you want to jump, simply have a change attribute behavior changing its motion linear y to its motion linear y +200
  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    Just to add to what John said, if you want him to only jump from the ground, not double jump/triple jump etc, have this in your rule.

    When touch is pressed (or however you are triggering the jump) AND self.motion.linear velocity.y = 0

    Change attribute self.motion.linear velocity.y to 700 (adjust this number to taste)

    Also, as John said, have an accelerate down behaviour on the actor at 900 or whatever speed you want him to fall.

    Ace
  • GingerBGamesGingerBGames Member Posts: 390
    Thanks guys, i'll give it a go.
  • GingerBGamesGingerBGames Member Posts: 390
    How do I get him to stop jumping?
  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    The accelerate should be taking care of that for you.

    Ace
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    you may also need to turn restitution down for your ground and jumping actors.

    ___________________________________________________________________________________
    Project Help from Tenrdrmer Click Here

    GS BubbleBall Template HERE!!
    Stacks Level Selection Template HERE!!
    Expanding Option Menu Template HERE!!
    Tenrdrmer's Menu # 3 HERE!!
    Menu #4 - Level Banners HERE!!
    AppSolute Entertainment on Facebook
    AppSolute Entertainment on iTunes
  • GingerBGamesGingerBGames Member Posts: 390
    Sorry, I mean how do I stop the glide effect he does?
  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    Post a screen recording, I don't get what you mean.

    Ace
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    the accelerate should take care of that. don't put that into a rule or anything just place the behavior at the top of the rules
  • GingerBGamesGingerBGames Member Posts: 390
    Got it, thanks guys.
Sign In or Register to comment.