In an introductory sharing for the use of GeoGebra to my colleagues, I have prepared a simple template for them to try their hands at animations of points and other elements.
You can try the same too. Create a moving point by typing into the Input field (5,5*sin(time)) so that you get a point at x = 5 that oscillates between 5 and -5 in the vertical direction.