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

Sprite destroy on wall does not work with edge of screen #1522

Open
kevinjwalters opened this issue Dec 9, 2019 · 2 comments
Open

Sprite destroy on wall does not work with edge of screen #1522

kevinjwalters opened this issue Dec 9, 2019 · 2 comments
Labels
bug Something isn't working gameengine p2

Comments

@kevinjwalters
Copy link

Describe the bug
The setting for sprites for destroy on wall does not trigger destruction when a sprite goes of screen on a tilemap-less screen. bounce on wall does bounce on the edge of the screen suggesting an implicit wall. This is inconsistent.

I've seen this in beta beta, 0.14.45 / 5.30.6, but I think it's like this in all versions.

If you run the code in #1505 the cyan duck at the bottom will eventually come back on screen very briefly. This is not shown in the short animated gifs as they don't cover enough time.

To Reproduce
Steps to reproduce the behavior:

  1. Set a sprite to destroy on wall
  2. Set velocity or acceleration to set it moving
  3. Watch it go off screen.
  4. Set reverse direction to make it come back.
  5. Observe it re-appearing.

Expected behavior
I'd expect consistent behaviour between bounce on wall and destroy on wall here.

Screenshots

Desktop (please complete the following information):

  • n/a

Smartphone (please complete the following information):

  • n/a

Additional context
Discussed in #1505 (comment)

@abchatra abchatra added bug Something isn't working p2 gameengine labels Dec 10, 2019
@kevinjwalters
Copy link
Author

I've just noted the adding camera follow sprite to a moving sprite prevents it from hitting the implicit wall 😞

@riknoll
Copy link
Member

riknoll commented Jul 1, 2021

@kevinjwalters if you add a camera follow to a sprite, it will never hit the edge of the screen because the screen moves with it.

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

No branches or pull requests

3 participants