Scrolling Death

0 favourites
  • 2 posts
From the Asset Store
All popular touch mechanics - scrolling, zooming, swiping
  • Hello.

    I'm currently making a scrolling platform game (both vertical and horizontal at parts).

    On my first level, I've created a player, setup a camera sprite with a bullet and scroll to behaviour.

    My problem, is I'm having trouble "killing" the player when he is off the screen.

    The player starts at the bottom of the Layout with the Camera (Both are off the initial window space.

    Simply I want the player to die when he is off the screen. I read up that the Is On Screen condition doesn't work when inverted, so i'm looking for an alternative way.

    I'm not using the "endless scroller method" so my layout size is 640 x 2000 and my window size is 640 x 480.

    This means when the camera overtakes the player, he is still ON the layout, so I can't use "DestroyOutsideofLayout either.

    Thoughts?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Simple workaround, but probably not the best:

    Make sprites just outside the viewport pinned to the camera sprite and on overlap destroy player.

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