How do I enable/disable the unbounded scrolling on the event

0 favourites
  • 2 posts
From the Asset Store
Change the size and position of everything without calculating anything!
  • Hi there,

    is there a way to enable and disable the unbounded scrolling via event sheet?

    I want to make a camera shake and have to disable the unbound scrolling to see the effect.

    But when the shake effect ist over, the camera should follow the player again.

    Any idea?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Howdy! I wanted to do something similar with my game, but I couldn't find an event to change bounded/unbounded scrolling settings in-game.

    My solution was to set every layout to "unbounded scrolling", and then change my camera behaviors so they only followed my sprite's position if it was within a certain area. For example, if your game's window size is 400 pixels wide, you make it so that the camera follows your sprite's X if it is greater than or equal to 200 and less than or equal to (LayoutWidth - 200).

    Then you build your level a little beyond the borders of the layout's actual dimensions. That way, you'll only see that little bit of extra level if the camera shakes while its near the edges of the layout. But the camera won't scroll that far otherwise.

    It might not be the simplest solution, but it worked for me.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)