|Topic was automatically imported from the old Question2Answer platform.
I am making an object fall, i want to have acelleration, but i also want it to cap it at a certain amout, because right now it just keeps on getting speed
var velocity = Vector2.ZERO
var velocidade = 2
velocity.y += velocidade
velocity = move_and_slide(velocity)