How do I destroy an object only during a certain frame?

Get help using Construct 2

Post » Tue Jul 14, 2015 7:09 am

Hello Everyone

This question is going to sound rather long winded but I just wanted to be clear...

So in the game I'm working on, it all revolves around timing. What I need to do is create an event in which projectiles damage the main character sprite only when he isn't blocking. So there are two animation frames in my simple game, blocking and not blocking. How do I make it so that the character is destroyed when hit by a projectile during the non-blocking animation frame but he blocks it and does NOT die when the blocking animation frame is playing?

Thank you in advance.
B
5
Posts: 12
Reputation: 249

Post » Tue Jul 14, 2015 7:13 am

projectile on collision with character
-- character animation frame = 0
> character destroy
-- else
> projectile destroy
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Jul 15, 2015 1:37 am

You're awesome, thank you so much! I'll test it out now.
B
5
Posts: 12
Reputation: 249


Return to How do I....?

Who is online

Users browsing this forum: ChesVCF, DarknessGamingDK and 2 guests