Hi,
I have a player’s head who I want to move up/down and rotate a bit to make it look like they’re alive/breathing. What is the best way to go about that?
Here is my player (car_object + head_object) and I want to make his head “bob” back and forth.
I’ve looked at the Corona APIs and Coronto Tutorials but I’m not exactly sure what the best way to achieve this is. Let’s say I want to rotate the head 20 degrees clockwise over the span of 2 seconds and then rotate it back continuously. Do I use a timer.performWithDelay() call and make it move 1 degree every 100ms? Or is there a built-in transition that already does this?
Thanks in advance!