Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Kinball |
I’m making a 2D platformer with an enemy that moves left and right.
It already changes direction when facing a wall, but I would like it to change directions when it’s about to fall off from a platform by checking the area near and below it.
Something like this: https://ibb.co/QXGH6Pv
You can use the test_move()
function to detect the spaces in front and the back of an enemy.
Ertain | 2021-01-21 17:59