PLEASE HELP! Fighting Game Jumping

AfterBurnettAfterBurnett Member Posts: 3,474
edited November -1 in Working with GS (Mac)
I've looked everywhere and can't seem to find the answers. I have my characters jumping okay but I can't limit their max speed the way I have it set up or it screws the jumping.

Basically, I need the characters to jump the SAME height every time and they should NOT be controllable in the air... what's the best way to do this? It's doing my head in....

Comments

  • firemaplegamesfiremaplegames Member Posts: 3,211
    You need to be able to detect when the player is jumping. An easy way is to use Motion.Linear.Velocity.Y

    If that is not 0, then the actor is in the air.

    So you would need to add that condition to your left/right Rules, like this:

    Rule
    When ALL conditions are valid:
    Left Key is DOWN
    self.Linear.Y = 0
    -----[Move Left]

    Rule
    When ALL conditions are valid:
    Right Key is DOWN
    self.Linear.Y = 0
    -----[Move Right]
  • AfterBurnettAfterBurnett Member Posts: 3,474
    I've tried similar things to that but the result is he can only jump straight up. I want the character to be able to jump up, up/left and up/right but when in the air not controllable. All jumps should be identical in height/length every time too. Any thoughts? Think of it as n old arcade game, I want to be able to jump when up is pressed, when up and left are pressed simultaneously and when up and right are pressed simultaneously. Can't work it out...
  • AfterBurnettAfterBurnett Member Posts: 3,474
    Okay, so this is what I've got so far after a bit of looking around the forums. I took some info from scitunes's post but it still seems to "grab" the ground when he lands and it looks a little odd as there is a slight speed burst ...

    Any help would be appreciated ;)

    http://gamesalad.com/game/play/59120
  • firemaplegamesfiremaplegames Member Posts: 3,211
    To fix him going through the floor, use a Rule.

    Rule
    When self.Position.Y < [whatever]
    -----Constrain Attribute to [whatever]

    Jumping is real difficult to get right. You are also using a physics engine (no way around it) so you have to fight against that.

    You're trying to make something like SF2?
    I'll try to think about it when I get a chance.
  • AfterBurnettAfterBurnett Member Posts: 3,474
    Yeah, SF2 style. That'd be awesome if you could help... everything else seems pretty straight forward... jumping is the tough bit!
Sign In or Register to comment.