Hurting player after flash is finished.

Get help using Construct 2

Post » Fri Aug 23, 2013 3:39 pm

I got my player to flash after hitting this lava pit, but I want him to get hurt again AFTER the flash has ended if he's still on collision with the pit. Right now, after the flash has ended, He's able to stand on the pit without taking damage. How do I go about doing this?

Here's the Capx:

http://www.mediafire.com/?su2jes4wxpxdbyy
B
10
S
4
G
1
Posts: 159
Reputation: 1,933

Post » Fri Aug 23, 2013 3:59 pm

Use the 'On flash ended' trigger: Flashblackhornet2013-08-23 16:01:17
ImageImageImage
B
71
S
22
G
274
Posts: 3,829
Reputation: 151,306

Post » Fri Aug 23, 2013 4:08 pm

I would If I knew where to put it.

Here's what I have:

B
10
S
4
G
1
Posts: 159
Reputation: 1,933

Post » Fri Aug 23, 2013 4:13 pm

It's because on collision is a trigger and you can't invert it. I had this trouble myself. You need to set up some global variables.
B
48
S
19
G
87
Posts: 2,317
Reputation: 51,518

Post » Fri Aug 23, 2013 4:23 pm

^^ Explain, please?
B
10
S
4
G
1
Posts: 159
Reputation: 1,933

Post » Fri Aug 23, 2013 4:28 pm

ImageImageImage
B
71
S
22
G
274
Posts: 3,829
Reputation: 151,306

Post » Fri Aug 23, 2013 4:31 pm

^^It won't let me open the file
B
10
S
4
G
1
Posts: 159
Reputation: 1,933

Post » Fri Aug 23, 2013 4:34 pm

Sorry about that. My upload speed took a nosedive for some reason. It's done now.
ImageImageImage
B
71
S
22
G
274
Posts: 3,829
Reputation: 151,306

Post » Fri Aug 23, 2013 4:40 pm

^^ still won't let me open it. Getting an error message

B
10
S
4
G
1
Posts: 159
Reputation: 1,933

Post » Fri Aug 23, 2013 4:42 pm

Update to latest version of Construct 2 here
B
48
S
19
G
87
Posts: 2,317
Reputation: 51,518

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 58 guests