Platformer game problem

HameedHameed Member, PRO Posts: 21

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 Member Posts: 9,922

    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 Member, PRO Posts: 21

    Thanks man!

  • HameedHameed Member, PRO Posts: 21

    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 Member Posts: 9,922
    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 Member Posts: 1,764

    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.