Rotating actor based on the tiles they are touching?

EatMoreHippo

  • Posts: 62
I'm trying to make a car driving game that involves ramps. The problem is that I don't want the car to be able to rotate outside of when it is driving up the ramp, so obstacles don't knock the car around and it can't go twirling when in the air.

How do I make it so that the car actor will only be rotated by the change in the incline of the tiles beneath it?

Alexin

  • *
  • Posts: 3127
First you must detect slopes. The Jump And Run kit has a behavior that does it (Slope Detection?). Then rotate the car yourself according to the slope.
"Find the fun"
alexin@stencyl.com

EatMoreHippo

  • Posts: 62
First you must detect slopes. The Jump And Run kit has a behavior that does it (Slope Detection?). Then rotate the car yourself according to the slope.
Thanks, using the normals as shown in that kit did the trick.