Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants