How do I make sprite destroy when falling from platform

Get help using Construct 2

Post » Wed Nov 16, 2016 4:24 am

i'm create side scrolling endless run end i want to ask how do i make my sprite dead when falling from platform
thanks
B
6
Posts: 3
Reputation: 256

Post » Wed Nov 16, 2016 6:11 am

create a trigger :D
B
79
S
31
G
7
Posts: 148
Reputation: 9,179

Post » Wed Nov 16, 2016 1:23 pm

Either compare the Y or make tiled background, spread it under your layout and make a on collision event to destroy the sprite
Black Bobby The Hole Greenlit with 303 votes.
B
36
S
8
G
1
Posts: 163
Reputation: 3,029

Post » Wed Nov 16, 2016 11:22 pm

Simply try something like this :mrgreen: :

Image
B
11
S
2
G
2
Posts: 13
Reputation: 1,144

Post » Thu Nov 17, 2016 7:09 am

if your layout size is appropriate for it you can also just add the "destroy on outside of layout" behavior to your player. And then whatever events you want to follow that.
Or you can also set a Y coordinate (or collision box) that will respawn your player at its starting position if the player overlaps either of these.
There's a number of ways to handle it, just study the basics and be creative!
B
15
S
3
G
3
Posts: 75
Reputation: 2,473

Post » Mon Nov 21, 2016 4:00 am

deathkazu wrote:Simply try something like this :mrgreen: :

Image


i tried this one, but it doesnt work
i want to make like this
if my sprite fall from platform then go to layout "game over"
B
6
Posts: 3
Reputation: 256

Post » Tue Nov 22, 2016 12:08 am

krisnaputra24 wrote:
deathkazu wrote:Simply try something like this :mrgreen: :

Image


i tried this one, but it doesnt work
i want to make like this
if my sprite fall from platform then go to layout "game over"


Then, try with this:

Image

Also, here I uploaded a capx with the code and is fully functional:
capx download

Hope this will works for you ;)
B
11
S
2
G
2
Posts: 13
Reputation: 1,144

Post » Wed Nov 30, 2016 4:48 am

Message: krisnaputra24 can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
deathkazu wrote:
krisnaputra24 wrote:
deathkazu wrote:Simply try something like this :mrgreen: :

Image


i tried this one, but it doesnt work
i want to make like this
if my sprite fall from platform then go to layout "game over"


Then, try with this:

Image

Also, here I uploaded a capx with the code and is fully functional:
https://drive.google.com/open?id=0B9oc0uCMzJklXzJydVAtU204QXM capx download

Hope this will works for you ;)


thanks for the help mate
i have figure it out
thanks a lot
B
6
Posts: 3
Reputation: 256


Return to How do I....?

Who is online

Users browsing this forum: David181, OBLIVION and 59 guests