How to make sine behavior happen exactly for 2 sine waves and then stop. basically i am trying to shake the object horizontally and then stop.
Let me know if there is any other trick as well to accomplish the same.
Develop games in your browser. Powerful, performant & highly capable.
Hmm. You'll probably need an instance variable that increments whenever the CyclePosition variable passes a certain value. When this variable passes two, disable the sine behavior.