Platformer game problem
Hameed
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
See my video physics in gamesalad part 3. I show how to deal with that issue. The link is in my signature guru videos.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Thanks man!
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
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.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
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.