ID:163054
 
Is it possible to flick an overlay on a player this would help a lot in reducing all my sleep(??)'s
This is what I use
M.overlays+=image(icon='inventory/psi.dmi',icon_state="lifeupa")
sleep(20)
M.overlays-=image(icon='inventory/psi.dmi',icon_state="lifeupa"

See what I mean by flick?
The more recent versions of 4.0 allow you to make an icon loop only once. You can change this in the movie editor of the icon editor (where you see the frames, delays etc.).

Then the above code will behave properly. You can then increase sleep(20) to the real frames your icon uses + 5 (i.e. if your movie has 10 frames, and one of them has a delay of "2", it means you are using 11 frames. 11 + 5 = 16) to be sure it was displayed correctly.

-- Data