Hey, so far ive only had my sprites move at a constant speed, like this:
x += dx * elapsedTime;
y += dy * elapsedTime;
Where elapsedtime is the time between each render loop and dx and dy is the velocity in y and x direction - simple, working and quite boring to look at. What I would like is a movement that accelerates to a max speed and de-accelerates when the sprite is near its goal, like this:
start position - ||||| | | | | | | | | | | | | | ||||||| - end position
Where the space between the |'s is the position of the sprite. I bet its simple math, but [insert excuse here].
