GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Platformer game problem

HameedHameed Posts: 21Member, PRO

Hey guys

I want to have an actor move on a platform which has many breaks and sharp changes of direction. On each part of that platform the player should move along the platform and experience an acceleration perpendicular to it.
My question is when there is a right or acute angle between two parts of the platform and the player wants to go from one to the other how can I make the motion and acceleration rules change?

Thanks

Comments

  • The_Gamesalad_GuruThe_Gamesalad_Guru Posts: 9,906Member

    See my video physics in gamesalad part 3. I show how to deal with that issue. The link is in my signature guru videos.

  • HameedHameed Posts: 21Member, PRO

    Thanks man!

  • HameedHameed Posts: 21Member, PRO

    Dear guru

    I watched your video but did'nt find the solution to my problem in it. Could you please explain it to me here?

    thanks for your help
    Hamid

  • The_Gamesalad_GuruThe_Gamesalad_Guru Posts: 9,906Member
    edited November 2015

    okay so I think I get what you want. You need a rule or rules in your player actor that says when your player overlaps or collides with that part of the platform change velocity. Use the change velocity behavior. You may want to put that change velocity in a timer to limit how long that behavior affects the player.

  • BBEnkBBEnk Posts: 1,764Member

    Best way is to use a separate actor for collision and have your image actor constrained to that, and this way you can tilt the collision actor so it never gets caught on anything. This is how I built my platformer, and every other game I've made works very well.

Sign In or Register to comment.