I made several circles which drop down from their random position, at 3 seconds after opening application.
- if( (m > 3000) & (y < fallLimit) ){
- y = y + speed;
- }
- if (y > fallLimit) {
- y = fallLimit;
- }
Now, their is fallLimit in y (i assigned 800 at this), so the circles stop on the invisible line on 800 y.
However, I want to stop the movement of circles at designated line, like the first image I draw.
When circles meet the curve, they should stop and stick on the line. (just like falling balls on the sticky ground)
Is this possible? Can anybody help this poor beginner?
1