How do you make an actor wall jump?

FrazzleFrazzle Member Posts: 223
edited November -1 in Working with GS (Mac)
I've recently bought super meat boy, a great XBL platformer where the player's main form of movement is wall jumping,so I want to know how to create a wall jump function in GS.

FM.

Comments

  • osucowboy18osucowboy18 Member Posts: 1,307
    I don't have an XBox, so could you be a little more specific on what you want the "wall function" to do?

    - Alex
  • FrazzleFrazzle Member Posts: 223
    Well if you try to move into a wall and press the jump button at the same time the actor bounces off the wall in the opposite direction.

    Either way, you could search Youtube. :)
  • OaklandasfanOaklandasfan Member Posts: 213
    In the character
    Do a rule, and say
    if attributes
    game.jumping is true (or 1) and is overlapping or colliding with WallJumpWall (you'll need a new actor)
    change attribute game.WallJumpAble to true (or 1)

    In the Jump button, say
    If touch is pressed and game.WallJumpAble is true change attribute game.WallJumping to true, change attribute WallJumpAble to false

    Back in the Character, add a new rule:
    If attribute game.WallJumping is true, (Timer) for 1 (more or less) seconds accelerate at ___º ____ (speed)

    To do left and right, you'll need to repeat this (and make extra attributes, Left and Right (ex. WallJumpingL and WallJumpingR)

    Basically, If the player is in mid-jump and you're on a wall, when the jump button is pressed you will jump at your selected degrees and acceleration for 1 second. If gravity is on, your person should fall back to the ground.
  • FrazzleFrazzle Member Posts: 223
    I've tried your method but I'm having trouble telling the actor when they are in mid-air.It's because at the very peak of a jump the linear Y velocity is 0, and that's when I tell the actor when they are on the ground.

    Any solution to this?
Sign In or Register to comment.