Stop sine behavior from following viewpoint

0 favourites
  • 1 posts
  • 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.

    Thoughts?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)