Detecting which side of a solid rectangle actor the player actor has collided with
In my platform game, I'm trying to find out how to determine which side of a solid square/rectangle actor the player actor has collided with.
I'd like to write this to an attribute so I can make some events only happen when the player collides with the top, or the left side etc.
I've been trying to find out how to accomplish this for a few hours now and I've got nowhere. I thought I'd be able to use AngleToVector but for some reason that's not even returning a value (not sure why!)
Any help? Thanks, Joseph
I'd like to write this to an attribute so I can make some events only happen when the player collides with the top, or the left side etc.
I've been trying to find out how to accomplish this for a few hours now and I've got nowhere. I thought I'd be able to use AngleToVector but for some reason that's not even returning a value (not sure why!)
Any help? Thanks, Joseph
Comments
http://www.jamie-cross.net/?p=607
Jamie
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page