How do I make a Player invincible for some time?

Get help using Construct 2

Post » Mon Oct 31, 2011 3:54 pm

Construct 2 r65

Im trying to create a platformer game in which every time the Player touches an Enemy he changes color, losing graphically his energy.

He begins blue, than when he hits the first enemy he turns yellow and red when he hits another enemy, before the final death.

The thing is: when hes blue and he touches an enemy it turns to yellow and right away he turns red, he doesnt last yellow because hes still in touch with the enemy.

How can I get the yellow to hold on? How can I get the yellow time to be invincible for some amount of time?

Thanks :)
B
18
S
4
G
5
Posts: 149
Reputation: 4,498

Post » Mon Oct 31, 2011 3:59 pm

I'd stick a "System - Trigger once while true" condition in the event that tests collision between the player and an ennemy.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Mon Oct 31, 2011 4:01 pm

Thanks for the quick response, I'll try that and than I'll let you know my result
B
18
S
4
G
5
Posts: 149
Reputation: 4,498

Post » Mon Oct 31, 2011 4:08 pm

It didn't work, but than again, I could be me doing the wrong stuff, to be fair :)

Can you be a bit more specific? :)

thanks :)
B
18
S
4
G
5
Posts: 149
Reputation: 4,498

Post » Mon Oct 31, 2011 4:09 pm

Post your capx.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 23 guests