Alloi
Member
I have a parent object named oBlock. Then I have 2 children objects, one named oPlayer1 and the other oPlayer2.
I am trying to have it so collision is detected if the other jumps onto their head. My issue is that when using "physics_test_overlap(x,y,image_angle,oBlock)" a collision is always detected, even when it is not touching other objects. I assume it is counting itself in the collision here.
Second issue is if I do "physics_test_overlap(x,y+vspeed-1,image_angle,oPlayer2)" inside of oPlayer1's code, and vise versa in oPlayer2, a collision for the one on top will be made if it is travelling quickly into the other object, when only the one on bottom should be accepting it.
What are some ways I can prevent that? I've looked into using place_meeting etc with minimal luck.
Any help is appreciated, thank you in advance.
I am trying to have it so collision is detected if the other jumps onto their head. My issue is that when using "physics_test_overlap(x,y,image_angle,oBlock)" a collision is always detected, even when it is not touching other objects. I assume it is counting itself in the collision here.
Second issue is if I do "physics_test_overlap(x,y+vspeed-1,image_angle,oPlayer2)" inside of oPlayer1's code, and vise versa in oPlayer2, a collision for the one on top will be made if it is travelling quickly into the other object, when only the one on bottom should be accepting it.
What are some ways I can prevent that? I've looked into using place_meeting etc with minimal luck.
Any help is appreciated, thank you in advance.