kaboom icon indicating copy to clipboard operation
kaboom copied to clipboard

e.error is null

Open UCYT5040 opened this issue 3 years ago • 3 comments

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

UCYT5040 avatar Jul 05 '22 02:07 UCYT5040

It would be great if you could provide a live demo! I think that this code is not enough to find the error.

lajbel avatar Jul 21 '22 23:07 lajbel

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.

UCYT5040 avatar Jul 22 '22 02:07 UCYT5040

Some update on this?

lajbel avatar Dec 26 '22 13:12 lajbel