Hi,
I have some problems making my display object (purpleFish) moving across the screen following a sinusoidal movement.
I managed to make the object to climb exponentially along the y axis,but I don’t know how to follow a sine movement.
Long story short : purpleFish goes up,but doesn’t climb down to follow a sine movement
Some help,ideas would be apreciated.
Thank you!
This is what I tried…
local function sineMovement () transition.to (purpleFish,{time = 5000,x = Amplitude\*math.sin(2\*3.14+6),onComplete = sineMovement}) transition.to (purpleFish,{time = 5000,y = Amplitude\*math.sin(2\*3.14-5) ,onComplete = sineMovement}) end
