Timeline for How do I make a sprite blink on an HTML5 canvas?
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 1, 2016 at 12:17 | comment | added | Overflowh |
+1 For avoiding to use jQuery or setInterval .
|
|
Mar 17, 2014 at 10:51 | comment | added | Maksims Mihejevs | I see your needs, but without another premade sprites (can be dynamically generated rather than downloaded), there are no many options you can go.. <canvas> 2d is simplified thing by intention. | |
Mar 15, 2014 at 10:06 | vote | accept | user3065579 | ||
Mar 15, 2014 at 10:04 | comment | added | user3065579 | i didnt try anything because i dont know how to approach this problem... lets say a have a sprite of the hero, there are pixels that define his shape and transparent pixels around him inside the sprite. i want to overlay/change the color or whatever of the non-transparent pixels of the sprite how it is known from games when characters are hit/take damage, they flash often in a white color or something. this is the effect i want to achieve. i cant use another sprite of the exact shape as my hero character can equip items which change his shape and also a whole set of sprites would be overkill | |
Mar 3, 2014 at 17:06 | comment | added | Maksims Mihejevs | Sorry, could you show first what have you tried and what did not worked? As it looks like you are asking the question on answer that is already is given to you. | |
Mar 1, 2014 at 12:08 | comment | added | user3065579 | how do you "blink" it? a new sprite? | |
Feb 23, 2014 at 13:41 | comment | added | Maksims Mihejevs | @Anko thanks a lot for your edit! Your rephrase just makes amazing difference and ease of reading. I need to get to that level as well (I am russian...) :) | |
Feb 22, 2014 at 3:49 | history | edited | Anko | CC BY-SA 3.0 |
Clarified intention.
|
Feb 21, 2014 at 16:29 | review | First posts | |||
Feb 21, 2014 at 16:46 | |||||
Feb 21, 2014 at 16:09 | history | answered | Maksims Mihejevs | CC BY-SA 3.0 |