Problem with observables and animations

Hi, Im trying to animate something with points

In this code, it is supposed to show points moving for each iteration. The problem is that the points from the previous iteration aren’t being removed, resulting in an accumulation of points.

Thanks in advance :wink:

You’re adding a scatter each frame, I’d take a look at the basic tutorial in the docs, and the page about animations

il try that, thanks for the tip