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

Quickly hooking causes the game to crash #185

Open
JPCard opened this issue May 5, 2020 · 1 comment
Open

Quickly hooking causes the game to crash #185

JPCard opened this issue May 5, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@JPCard
Copy link
Contributor

JPCard commented May 5, 2020

I'm submitting a...

  • [ x] Bug report.

Bug report

What is the current behavior?
If the player quickly hooks a hook target a few times in a row the player shrinks itself and the game crashes.

What is the expected behavior?
The game doesn't crashes when the player quickly hooks a hook target a few times in a row.

Tell us the steps to reproduce the bug, and if possible share a minimal demo of the problem.

  1. Start the game
  2. Quickly hook a hook target a few times in a row.

Other

Stacktrace

E 0:00:00.764 get_global_transform: Condition "!is_inside_tree()" is true. Returned: get_transform() <C++ Source> scene/2d/canvas_item.cpp:483 @ get_global_transform() <Stack Trace> LevelLoader.gd:37 @ trigger() LevelLoader.gd:16 @ setup() Game.gd:13 @ _ready()

Possible solution

add a cooldown to the hook.

@JPCard JPCard changed the title Quickly hooking cause the game to crash Quickly hooking causes the game to crash May 6, 2020
@NathanLovato NathanLovato added the bug Something isn't working label May 7, 2020
@NathanLovato
Copy link
Contributor

Thanks, I have to test it to see exactly how this happens.

If the player shrinks, it means it's entering the Die state. So there might be an invisible enemy or something where the issue happened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants