Best way to "Flash" character
So I'd like to have an enemy flash when the player "selects" him. That way the player knows which enemy he is targeting.
I've been playing with some self.attributes, change attribute (alpha) and some interpolate features, but nothing seems to be working very well.
What's the best way to get the enemy to "flash" or give the player the indication that they've selected them and bullets will fly towards him?
I've been playing with some self.attributes, change attribute (alpha) and some interpolate features, but nothing seems to be working very well.
What's the best way to get the enemy to "flash" or give the player the indication that they've selected them and bullets will fly towards him?
Comments
When touch is pressed
--Change Attribute Self.color.blue to 0
--Change Attribute self.color.green to 0
Otherwise
--Change Attribute Self.color.blue to 1
--Change Attribute self.color.green to 1
That particular rule will give your actor image a red color while you are touching it and then go back to normal when released. You can play with the color selector to work out the exact color you attributes you want it to change to. Just remember when changing the colors its a 0 to 1 value so if your setting your color based on the 0-255 settings the actual color selector gives you you need to set those in there and then look at what the actual attribute in the actor is set at to get the correct 0 to 1 value.
change image to the flash image
then another rule when attribute self image is (the exact name of the image with.png)
timer after .2 seconds, change image back to regular image
that will give u a nice random effect.