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

Ownerless projectiles remain on the screen forever #9

Open
Funatiker opened this issue Mar 7, 2016 · 1 comment
Open

Ownerless projectiles remain on the screen forever #9

Funatiker opened this issue Mar 7, 2016 · 1 comment

Comments

@Funatiker
Copy link
Contributor

Sometimes enemies shoot projectiles while (?) dying. In that case, it might happen that a projectile remains on screen. It stops moving when the death-animation has finished but it won't disappear but stays animated (although not harmful anymore).

Ownerless projectile 1
Ownerless projectile 2
Ownerless projectile 3
Ownerless projectile 4
Ownerless projectile 5

@Funatiker
Copy link
Contributor Author

@WinterLicht is it possible that check_to_deactivate() (statesystem) activates dead enemies and makes them shoot projectiles after the death animation has been started?

Edit: I've written a bit of debug code:
debugcode.txt

It indicates that statesystem.py actually re-activates dead AIs:

$ python game.py
HELP I DIED 60
HELP I DIED 59
HELP I DIED 57
HELP I DIED 58
I am the statesystem and I am activating a dead ai. Really. Not kidding 58

I added of more line of print()-debugging and now I see that the AI sometimes tries to attack after dying.

debugcode2.txt

$ python game.py
HELP I DIED 60
HELP I DIED 59
HELP I DIED 57
I am the statesystem and I am activating a dead ai. Really. Not kidding 57
I just tried to attack although I am DEAD. WHUT?
I just tried to attack although I am DEAD. WHUT?
I just tried to attack although I am DEAD. WHUT?
I just tried to attack although I am DEAD. WHUT?
I just tried to attack although I am DEAD. WHUT?
I just tried to attack although I am DEAD. WHUT?
I just tried to attack although I am DEAD. WHUT?
HELP I DIED 58
HELP I DIED 60
I am the statesystem and I am activating a dead ai. Really. Not kidding 60
I just tried to attack although I am DEAD. WHUT?
HELP I DIED 59
HELP I DIED 58
HELP I DIED 57

JoniHintz added a commit to JoniHintz/Chaos-Projectile that referenced this issue Dec 26, 2018
…projectiles when their owner is removed form the game.
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

1 participant