Put the given blocks together to make it work like this: https://forkphorus.github.io/app.html?id=430055688 The cat bounces from side to side. clicking the x or y button makes the direction of the bounce change from horizontal or vertical, respectively.