Scrolling Death

Get help using Construct 2

Post » Wed Jul 03, 2013 9:09 am


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.


Posts: 29
Reputation: 1,037

Post » Wed Jul 03, 2013 9:21 am

Simple workaround, but probably not the best:

Make sprites just outside the viewport pinned to the camera sprite and on overlap destroy player.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
Posts: 6,160
Reputation: 19,775

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 18 guests