Kaboom.js How can I change the direction of a sprite when he hits a wall?
As I was coding along with Ania Kubow´s Mario Tutorial, I noticed that the goomba will get stuck, if he walks into a wall. I wanted him to change his walking direction, if he hits a wall or a pipe. Tried it out my own first, but doesn´t seem to work that way :/(commented out line 207-213).
Thanks for your help