Hi ! I'm back again with my little script. As i mentioned
here :
I try to create an animation that I saw few month earlier on a website : you click somewhere, a circle begin to grow, then you click somewhere else, another circle begin to grow and when they meet, a sound is made.
It uses Iteration without using hashmap, it was perfect for me since i needed to create multiples instances of the same animated class by clicking. BUT now I have to setup the collision to make the circles inverse theyre growth when hitting the others circles. With the iteration presented in the code below (I withdrawn sound code parts for you all to test it) i don't know how to retrieve informations about the objects created to calculate distances to set up any collision function, could you help me ?
I'm new with Processing and mostly with programing, I try to create an animation that I saw few month earlier on a website : you click somewhere, a circle begin to grow, then you click somewhere else, another circle begin to grow and when they meet, a sound is made.
So I started to type some code to make circles and sound, discovering Processing aswell, but I have a problem : when i specify coordinates to my circle, the circle follow the mouse... so i tried to specify the x;y in another way (like vars somewhere that grab mouseX and mouseY) but it seems to put the values to 0,0 because my circle appears on the top left corner.