Side Collisions

I need to be able to detect when my hero is colliding with the side of an image to disable jump (just change grounded to false), and I need to be able to also disable jump (grounded changed to false) when my hero is colliding with the top of one actor and the side of another at the same time. I tried it but it's trial and error. The side and top collision cancelling jump is working; I just want to make sure I'm doing it right. Also, colliding with the side and disabling jump is not working. This may have to do with that when I collide I enable jump. I put actors into different tags to see if it was because it was the same collision (one rule said to enable jump when colliding with actor, other said not to when colliding with side) but that did not work. Thanks in advance and any further information needed to better troubleshoot the problem will be given if needed.

Comments

Sign In or Register to comment.