melonJS
melonJS copied to clipboard
Add Opacity to me.ObjectEntity
This is an improvement in order to make it easier to set and animate the opacity of an ObjectEntity.
hop ! If everybody is happy with the implementation, we can close this ticket :)
two linked thoughts while I was doing this :
- playing with transparency might be a way to fix the sprite flickering ? (though I think it's more a timing issue)
- less related but we might also add a color property (to tint sprite, as we discussed it in the forum)
Looks good to me! :D
If there are no other comments, I say this one can be closed.