edi233
edi233

Reputation: 3031

Andengine and move sprite a sine curve

I want to move my sprite of a sine curve. There is any function to do that? I can't find anything about it. What I should do to my sprite move in this way?

Upvotes: 0

Views: 172

Answers (1)

brian.brown
brian.brown

Reputation: 43

This is called Easing in andengine. Refer to this example for how to do it:

https://code.google.com/p/andengineexamples/source/browse/src/org/anddev/andengine/examples/EaseFunctionExample.java

There are functions for sine curve movement in the example.

Upvotes: 1

Related Questions