Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

e.error is null #610

Open
UCYT5040 opened this issue Jul 5, 2022 · 3 comments
Open

e.error is null #610

UCYT5040 opened this issue Jul 5, 2022 · 3 comments

Comments

@UCYT5040
Copy link

UCYT5040 commented Jul 5, 2022

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

@lajbel
Copy link
Contributor

lajbel commented Jul 21, 2022

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

@UCYT5040
Copy link
Author

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.

@lajbel
Copy link
Contributor

lajbel commented Dec 26, 2022

Some update on this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants