Scale my actor based on the direction and velocity its moving.

Hey guys. I’m workin on alil side prototype here.

Its a game where yo move a ball thru a maze, while avoiding edges, and traps to reach the goal within a timelimit.
My question is; How would I scale my ball actor based on the direction its moving? I’d like to do some interesting squash and stretch to provide some visual feedback when it starts moving.

Get its velocity that is vector, so multiply it by some value and apply to scale (just add 1,1,1, or some minimal scale value)

If you cannot use velocity (for eg moved by player directly). You should remember last position (in some constant intervals, use timer, or on event tick fire event to save last location every 0.1 sec or so).

And since you are storing last position of ball, you can extend code, store small array of last positions, then on each of those display fading ball.

I put this project on the back burner because I coudlnt understand your instructions at the time. I went back t the drawing board and I know a bi tmore about how to implement wha t you’re talking about. Gonna give it a try!