Hi, another one from me!
I have a jump code that lets my player jump when its in collision with the world, to prevent him jumping, without his feet touching anything.
Here is the code!
It works perfect... so far. I was thinking of adding a pivot with a collision radius as a child of the player, to detect if the players feet area is touching the ground.
At this point, pressing jump and standing against the wall, makes the player fly up. Funny as it is, that's not what I need :P
Before I make the child radius, is there a way to detect if a certain part/location of a collision radius is colliding?
Thanks!!
I have a jump code that lets my player jump when its in collision with the world, to prevent him jumping, without his feet touching anything.
Here is the code!
If KeyHit(57) If EntityCollided(player,world_col) While Player_velocityY =< 2 Player_velocityY = Player_velocityY + Gravity Wend EndIf EndIf
It works perfect... so far. I was thinking of adding a pivot with a collision radius as a child of the player, to detect if the players feet area is touching the ground.
At this point, pressing jump and standing against the wall, makes the player fly up. Funny as it is, that's not what I need :P
Before I make the child radius, is there a way to detect if a certain part/location of a collision radius is colliding?
Thanks!!