Skip to content
Sign upLog in
Profile icon

Guelprix

@Guelprix
  • OrneryMenacingMice

    Cover page
    Made with HTML, CSS, JS
    Recent comments (0)
  • GiantWrithingArchitects

    Cover page
    Made with Kaboom (legacy)
    Recent comments (0)
Repls
Community
Guelprix
Guelprix
shared a Post
1 year ago
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
GiantWrithingArchitects
kaboom
Coder100
Coder100
Did you miss some parts of the tutorial? There should be code like this: collides("dangerous", "wall", (d, w) => { d.dir *= -1; }); `1 year ago