Light The Hedgehog Posted October 22, 2013 Report Share Posted October 22, 2013 I'd really like to add layers to enhance level design. The problem is, that the collision force-ably makes Sonic want to be in that layer. I tried if layer==other.layer { Collision coding here<--- } To no avail. Any help is appreciated. Link to comment Share on other sites More sharing options...
justin123 Posted October 23, 2013 Report Share Posted October 23, 2013 I'd really like to add layers to enhance level design. The problem is, that the collision force-ably makes Sonic want to be in that layer.I tried if layer==other.layer { Collision coding here<--- } To no avail. Any help is appreciated. I'm not sure what your problem is, but you've taken the right approach to layering. Implement this into a collision script common to all of your collision functions. I like to always allow collision with layer 0 so that layer control is more forgiving. Try to define a standard for layering otherwise layer switching becomes a hassle to keep up with (2 low layers, 2 high layers maybe?). Erm, good luck! Link to comment Share on other sites More sharing options...
Recommended Posts