Actor stops moving after collision

ETGgamesETGgames Member, PRO Posts: 190

I have a platform game with the normal left, right, jump and shoot buttons. There are walls throughout the game that the player collides into. However, for example, if there is a hurdle that the actor has to jump over, and if the player collides with the wall (which makes his linear x velocity 0 obviously) and he jumps, he will jump higher than the hurdle, but even when he is no longer colliding with the hurdle, his linear velocity x remains at 0 until the right/left button is let go of and then pressed again.

Comments

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    For your movement buttons if you are currently using 'when touch is pressed' try using 'when touch is inside' instead.

  • ETGgamesETGgames Member, PRO Posts: 190

    I'm actually using the keyboard to control the player its for computers

  • BBEnkBBEnk Member Posts: 1,764

    Use move or accelerate that way as long as you hold down key actor will keep trying to move forward.

  • ETGgamesETGgames Member, PRO Posts: 190

    The problem with that is the player actor is always accelerating down, and when i use the move behaviour while I'm in the air, the acceleration become much lower than i set it for some reason, or when i try to jump while moving, i can only jump very low. So basically, using the move behaviour make the linear velocity y much lower than it should be...any workaround?

  • ETGgamesETGgames Member, PRO Posts: 190

    and I've tried changing the move type to stacked same problem

  • BBEnkBBEnk Member Posts: 1,764

    In my plat former game I use high numbers to get a good jumping effect you have to play around with it, So your actor doesn't look like he's floating.

    I use accelerate to move left and right set at I think 1400-1600 and my jump is a combination of change liner velocity Y 1000 and accelerate to 1000 or so. and I have a constant accelerate down of 2600. This is the hit zone unseen in game

    My visible player constrained to the above also has accelerate behaviors set the same for moving left and right for animation proposes.

    You can see my game here with player jumping and moving.

    http://forums.gamesalad.com/discussion/74268/my-games-steam-jack-and-martian-flapper-bird-free-for-the-weekend-nov-21-23#latest

  • ETGgamesETGgames Member, PRO Posts: 190

    Super Mario Much....But I don't want them to accelerate I just want the player to move

  • ETGgamesETGgames Member, PRO Posts: 190

    and i know i can set the maximum speed, but at points in the game there are things that make the player go really fast, that would exceed the max speed limit

  • BBEnkBBEnk Member Posts: 1,764

    @EthaneusTheGreat said:
    Super Mario Much....But I don't want them to accelerate I just want the player to move

    Very Much..Super Mario,lol

    and you can change max speed on the fly I do that in another game.

  • ETGgamesETGgames Member, PRO Posts: 190

    Urgh! It would be so much easier if game salad didn't have these bugs in their game engine

  • BBEnkBBEnk Member Posts: 1,764

    What Bug?

  • ETGgamesETGgames Member, PRO Posts: 190

    Um...what this hole post is about bug

Sign In or Register to comment.