Sprite teleports when moving mouse upwards Kaboom js

50 Views Asked by At

For some reason in Kaboom JS when you have a sprite with a body like this:

const player = add([
  sprite("bean"),
  pos(center()),
  area(),
  scale(2),
  body(),
]) 

and you move the mouse quickly upwards the body teleports off screen.

0

There are 0 best solutions below