I’m new to coding so this might sound very stupid but any help would be great.
I know how to increment x and y values to create object movement, and am in the process of learning how to do this using vectors, however I am in need of an alternative method for my latest project. I plan on randomly generating “enemies” and I want each of these to travel towards the centre of the screen, all at the same speed (arriving at different times however since I’ve set a time delay on their creation). Since they will be randomly generated each time I am struggling to work out how to give them set values for x and y speed. Is there a method in p5 in which I can give them a final destination to travel to, and the computer works out what to increment x and y by to get them there?