p5.SceneManager icon indicating copy to clipboard operation
p5.SceneManager copied to clipboard

Incompatibilities with p5.play and it's sprites

Open jonbarrow opened this issue 8 years ago • 2 comments

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.

jonbarrow avatar Aug 16 '17 20:08 jonbarrow

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

ngonzalez06 avatar Mar 07 '18 04:03 ngonzalez06

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

KatPurpy avatar Jun 03 '19 20:06 KatPurpy