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

Incompatibilities with p5.play and it's sprites #4

Open
jonbarrow opened this issue Aug 16, 2017 · 2 comments
Open

Incompatibilities with p5.play and it's sprites #4

jonbarrow opened this issue Aug 16, 2017 · 2 comments

Comments

@jonbarrow
Copy link

There seems to be some major issues when using this lib in conjunction with p5.play and using it's sprites. Scenes get mixed together, collisions start to break, etc. Here's an example of this from a project I'm working on:
exmaple

This lib doesn't seem to currently be able to handle the Group image/sprite structure that p5.play exposes. The only fix for this that I have found is to clear all p5.play groups of all sprites and then re-calling the setup function on the scene before transitioning. However this causes some intense lag as p5.play loads in new assets for the different scenes and creates all the sprites. To get around the lag of loading assets per-scene, you could load in every single asset at the very beginning, but that causes intense lag right from the start, and is a massive waste of resources.

@ngonzalez06
Copy link

Hi was this resolved? I'm having issues with sprite onMouse activity

@KatPurpy
Copy link

KatPurpy commented Jun 3, 2019

@RedDuckss I can recommend clearing sprites before going to the next scene and then creating new ones ;)

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

3 participants