Problems With My Platformer

11clock11clock Member Posts: 450
edited November -1 in Working with GS (Mac)
At the moment I have it so when vertical linear velocity is 0, it's colliding with tag Physics, and jump is true it will jump. The problem with this is when I have 2 platforms next to each other. While the character is rolling (yes it's a ball) between these 2 platforms, it won't be able to jump. I want it to instead check if tag Physics is under it and jump is true it will jump. There a way to do this?

EDIT: It also makes it impossible to jump while climbing slopes.

Comments

  • 11clock11clock Member Posts: 450
    Also, I don't want to remove if vertical velocity is 0. It will be able to jump in mid-air while next to a platform.
  • jb15jb15 Member Posts: 602
    I believe you're wanting the ball to jump when it's above the platform, but not when any part of it is below the platform.

    Is this correct? If so, you might need to make two actors for each platform, a super thin floor, that is the actual platform (with a height of 1 pixel or whatever) and then an actor below that looks like the platform, but has no physics/game consequences (it doesn't do anything, except make everything look good).

    Does this make sense? Is it what you're asking?
  • 11clock11clock Member Posts: 450
    A super thin floor will not work. A lot of the platforms in my game are moveable crates that can be turned on the side if pushed off of something.
  • 11clock11clock Member Posts: 450
    Another note. This is a physics platformer.
  • rlehmrlehm Member Posts: 320
    under image graphics you could try and set to tile. then one the scene, widen the platform so they appear to be next to each other, yet they are one, this way, it'll jump while going between them
  • 11clock11clock Member Posts: 450
    That won't work either. The 2 platforms are moveable crates. The whole game is centered around moving crates and positioning them, so making them one object will not work.

    I think I found a workaround, but it doesn't fully fix the problem. Fortunately, it's not an action game so it's not too big of a deal.
  • jb15jb15 Member Posts: 602
    I've thought about making a physics platformer before, but I ran into too many challenges (at least at my skill level).

    Good luck. :)
  • 11clock11clock Member Posts: 450
    Thanks! What I am working on is a sequel to a game I made a few years back in Game Maker. More info on my game in the link below.

    http://www.gamesaladforum.com/threads/tomato-potato-wilderness.54/
Sign In or Register to comment.