Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Yamz |
I have an enemy and when it hits a wall it changes its direction, but it also happens with the player
I would like the clash with the player not to change the direction
How could I fix it
Script Enemy
if is_on_wall():
direccion.x = 1 if direccion.x == -1 else -1
Why are you posting the same question over and over again?
how do I make is_on_Wall ignore some walls - Archive - Godot Forum
Magso | 2019-12-12 00:20
This question is much more clear and understandable than the other 2 mentioned. But you should avoid spamming anyway. Maybe editing would’ve been a better.
tastyshrimp | 2019-12-12 21:00