kaboom
kaboom copied to clipboard
e.error is null
Version
v2000.2/latest on CDN
What browsers are you seeing the problem on?
Chrome, Firefox
What happened?
I clicked on a spot which goes to another scene and it froze.
Error:
TypeError: e.error is null
What's the expected behavior?
It should go to another scene.
Minimum reproducable code
// Scene 1
// Sorry the indentation is a little messy
parkBtn.onUpdate(() => {
w = parkBtn.width / 2 * 0.25
h = parkBtn.height / 2 * 0.25
end = new Vec2(w*2, h*2)
position = parkBtn.pos.sub(new Vec2(w, 0))
mouse = mousePos()
if (((mouse.x > position.x) & (mouse.x < position.add(end).x)) & ((mouse.y > position.y) & (mouse.y < position.add(end).y))) {
parkBtn.opacity = 0.5
if (isMousePressed()) {
go("play", destinations.park)
}
} else {parkBtn.opacity = 1}
})
Live demo
No response
It would be great if you could provide a live demo! I think that this code is not enough to find the error.
It would be great if you could provide a live demo! I think that this code is not enough to find the error.
OK, working on it.
Some update on this?