My character stop to flash when he stop to move

Get help using Construct 2

Post » Thu Dec 03, 2015 10:55 pm

Hi,

I did a GameJam thiis week-end and i try to polish the game a little.

I make the animation for the player character flashing when he is hit by an ennemy. There is no problem when my character is moving but when he stop moving the flash stop too. I don't understand why. A property of the Flash Behavior that I don't know ?

This is a picture of Flash part of my capx :


Image

And this is my capx
B
7
S
1
Posts: 30
Reputation: 787

Post » Fri Dec 04, 2015 2:17 pm

@vivalabello
is it because you just trigger it once and if the player and enemy are still colliding there's nothing to retrigger it? this can be solved easily by creating some debug to check what the values of isHit and isHitCooldown are doing when the player and the enemy collide. If you want me to fix it can you cut the project down to less than 100 events, thanks.
B
43
S
13
G
59
Posts: 1,779
Reputation: 35,731


Return to How do I....?

Who is online

Users browsing this forum: Aergo, AllanR, anty21ro, Ethan, Fenix18, Iftikhar555 and 13 guests