Better way to check if actor is on the ground
![Fodder76](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
Hey there,
I'm hoping someone smarter than I has a better solution to a rather simple problem.
I have an actor that runs along the ground. The actor jumps, the actor ducks, etc. I have behaviors saying that when the collision for the actor is touching the ground collision, set an attribute to 'true' to tell me that the actor is touching the ground. Simple enough.
The problem is that GS is very sensitive with this. It works well enough for flat, non moving surfaces, but I've recently added platforms that move at an angle, and the actor is rapidly touching then not touching the surface any longer. (it flickers at the speed of light between true/false)
So my question, does anyone have a more consistent way of checking if an actor is touching the ground?
Thanks for your help!
I'm hoping someone smarter than I has a better solution to a rather simple problem.
I have an actor that runs along the ground. The actor jumps, the actor ducks, etc. I have behaviors saying that when the collision for the actor is touching the ground collision, set an attribute to 'true' to tell me that the actor is touching the ground. Simple enough.
The problem is that GS is very sensitive with this. It works well enough for flat, non moving surfaces, but I've recently added platforms that move at an angle, and the actor is rapidly touching then not touching the surface any longer. (it flickers at the speed of light between true/false)
So my question, does anyone have a more consistent way of checking if an actor is touching the ground?
Thanks for your help!
Comments
Thanks!