_____________________________________

About

_____________________________________

This is a Construct 3 template project. You can either use it as a start point for your game or you can merge it with your project using Construct 3 Project Merger.

Sprite Color blink for Construct 3 is a Contruct 3 template project that contain objects that will enable you to:

  • Add a color blink effect to your sprite objects
  • Check for actions of the collor blink using functions

_______________________________________

How to use it

_______________________________________

Setting up the project 

Start a new project using the attached file in this page or merge this template with your project using Construct 3 Project Merger.

  1. Include the "spriteColorBlink_include" event sheet into the sheet you want the effect to be available.
  2. Add the sprites you wish to aply the effect into the "spritecolorBlink" family.
  3. Use the functions available in this template to work with this effect.


The debug layout

This template comes with a layout named "spriteColorBlink_debug". You can preview this layout in Construct 3 to check in real time how the effect would look like.

_______________________________________

Template Functions

_______________________________________

Action functions

Those functions are available to use as actions under the Functions plugin. Action functions doesn't return values.

  • [Start Color Blink]
  • Parameters:
    • number object_uid - The UID of the object to apply the effect on. The object MUST be part of the spriteColorBlink family
    • number blinking_time - The time to blink in seconds
    • number color_blink_delay - The time to wait before swaping to next color
    • string color_code - String of a list of color values represented in the RGB format sepatared by "|". You can also preview the "spriteColorBlink_debug" layout in this project to test effects in real time and use the color codes generated there.
  • Description: Start the color blink effect for a object in the spriteColorBlink family

Expression functions

Those functions are available to use as expressions using the "Functions" prefix anywhere you could use a expression. Expressions functions always returns a value.

  • [Functions.IsColorBlinking]
  • Parameters:
    • number object_uid - The UID of the object to apply the effect on. The object MUST be part of the spriteColorBlink family
  • Description - Check if a object from the spriteColorBlink is blinking. Return 1 if it is, otherwise returns 0
  • [Functions.onColorBlinkFinished] (works like a trigger)
  • Parameters:
    • number object_uid - The UID of the object to apply the effect on. The object MUST be part of the spriteColorBlink family
  • Check if a object from the spriteColorBlink just finished blinking. Return 1 if it yes, otherwise returns 0

StatusReleased
CategoryAssets
Rating
Rated 5.0 out of 5 stars
(1 total ratings)
AuthorRelixes
Made withConstruct

Download

Download NowName your own price

Click download now to get access to the following files:

Color blink for Construct 3 sprites V1.0.0.c3p 62 kB

Development log

Leave a comment

Log in with itch.io to leave a comment.