How do I make a sprite flash a certain color?

0 favourites
  • 7 posts
From the Asset Store
Gather the balls with the same color and earn as much score as you can!
  • I'm trying to make an enemy flash bright red when it is shot at by the player, but I'm not sure how to do this.

    Can anyone tell me how?

  • ok there is a simple way to do this is making animation called : damaged

    and this damaged will have the red frames with normal frames

    red,normal,red,normal,red,normal .. so the red frame and normal will be created in any program like photoshop and so on...

    also put these condtion on hitting event :

    player is NOT playing "damaged" so while he is damaged he can't get hit

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Is there a way I can do this without recoloring sprites in photoshop?

  • The flash behavior could have a color option.

  • I don't see anything in the flash behavior. Did I miss something?

  • Is there a way I can do this without recoloring sprites in photoshop?

    No, you can't until they release shaders

  • Actually, there is a way to do this without adding a complete copy of the player sprite.

    Add a new sprite to your game. Make it a red box large enough to cover your entire player sprite no matter what animation is playing and set its effect to "Destination Over". Add events to center it on the player sprite and make it follow it. Also make sure to have it be in front of the player sprite.

    Now, when you want to make the player sprite red do this.

    + Whatever conditions you need to make it red

    - Player Sprite: Set effect: Destination Out

    - Red Box: Set Visible

    + Else

    - Player Sprite: Set effect: None

    - Red Box: Set Invisible

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)