GGJuanPabon
Member
My English is bad but I will try to explain. I need your help.
The problem you see in the video, happens because I have an isGround variable and another isJumping variable that is triggered in false or true if it touches the ground or jumps. But since the ceiling is the same object of the ground ... when jumping many times in a row, the error happens.
In Unity, you can create Empty GameObject, and place them as children of your object, as I show in the image. This allows me to shoot events if that object touches something.
I want to do the same in GameMaker, I want my floor not to be confused with my ceiling.
PROBLEM: What is happening to me is that when I jump and touch the ceiling, the perfect collision code acts, leading my player just before colliding, this translates it as isGround and I am having problems with that.
I would like to have more control, having a GameObject above my head and one below my feet, and thus identify if I am touching the ceiling or I am touching the ground.
What would you do? sorry if I sound somewhat cheeky, but, I'm starting with GMS2, and additionally my English is bad.
If you can give me an example code I thank you very much.
The problem you see in the video, happens because I have an isGround variable and another isJumping variable that is triggered in false or true if it touches the ground or jumps. But since the ceiling is the same object of the ground ... when jumping many times in a row, the error happens.
In Unity, you can create Empty GameObject, and place them as children of your object, as I show in the image. This allows me to shoot events if that object touches something.
I want to do the same in GameMaker, I want my floor not to be confused with my ceiling.
PROBLEM: What is happening to me is that when I jump and touch the ceiling, the perfect collision code acts, leading my player just before colliding, this translates it as isGround and I am having problems with that.
I would like to have more control, having a GameObject above my head and one below my feet, and thus identify if I am touching the ceiling or I am touching the ground.
What would you do? sorry if I sound somewhat cheeky, but, I'm starting with GMS2, and additionally my English is bad.
If you can give me an example code I thank you very much.
Last edited: