TGeorgeMihai wrote:@Aphrodite

Thanks, is exactly what I wanted

Still can you explain the formula

lerp(a, b, x) ? I understand that

a=current position,

b=destination and

x=speed, but I can't figure how

x works. I want to understand it in order to use it for menus. Using

these examples, how can I make the

"easeOutBack" or

"easeOutExpo" ?

In fact, lerp(a, b, x) is:

a: start number

b: end number

x: percentage (0 to 1) between a and b

But most people instead of making x varies, makes a variying, for exemple, if a is your current position, b your destination, and x is 0.5, theneach time, the distance between you and b will be divided by 2

Game design is all about decomposing the core of your game so it becomes simple instructions.