without animation it would be
+Mouse on cursor over sprite
Else - sprite set opacity to 50
if you want the opacity to slowly change:
+Mouse on cursor over sprite
- sprite set opacity sprite.opacity+1
Else
sprite compare opacity > 51
- sprite set opacity to sprite.opacity-1