I have an object that has two sine behaviors, one for back and forth, the other for vertical. The object is meant to move in an infinity-like pattern, which it does great. I use viewpionts where the UI is on a viewpoint that follows the player of course, and the game has its own layer for interactive object, etc. The game layer is then of course static in position, yet the object with sine behavior follows the player also, like the UI layer does.
How can I, if possible, set the oscillating object on the game layer but have it move independent of viewpoint? It seems that the sine behavior it more for games that do not scroll using views, rather shows the entire layout on one screen.
I tried to create a spawner object and then contain the sine behavior object to it, but the spawner then follows the view also.