We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi all,
I'm making an interactive animation where I display different animated elements depending on which key is pressed. I trigger different classes with basic shapes that are animated. All goes well except when I run animations that have an svg file as a base shape. Then all other animations in the same area are cleared from view. They pop back up (and have been running in the background somehow) once the svg animation is removed from the screen using ArrayList.remove(). I've searched but I haven't found a solution to this problem. I hope someone can point me in the right direction?
Thanks very much in advance, Danielle.
Answers
Your description is insufficient to allow us to help you.
We probably need to see your code.
If it is lengthly, it would be nice to be able to reduce it to a minimum showing the problem.
OK, sorry about that, I just wondered if it was a common problem with a know solution... If just post one of the conflicting classes and the way they are called in the main draw() function.
I call the classes in the draw function one after another. Maybe the stacking is a problem here?
If I click a certain key the doBee is activated:
}
The BeeVehicle class:
I'm sorry for the formatting (I selected and hit ctrl-O). I can't get it right. But I hope this gives you more insight in what might be wrong. Thanks for your time.
Formatting: you need empty lines around the code. I added them. And don't indent the plain text lines!
Thanks for you help. Any ideas what might be the cause of elements disappearing when the svg element is displayed? TIA.