ID:167166
 
Is it possible to flick and overlay ?
IceBlue wrote:
Is it possible to flick an overlay ?

In the words of the infamous Lummox JR: "No."
No, but you can flick the object that the overlay was on, and in certain circumstances this will cause the overlay to flick too.

What you need to do is make a new DMI file for each overlay, and give it an appropriately-named icon state; for this example I'll use "flickstate". So your DMI file should have *two* icon states; one with a blank name (that displays most of the time) and one with the name "flickstate".

When you're adding the overlay, just add the DMI file to the overlays list, for example:
src.overlays += 'overlay.dmi'


When you want to flick the overlay, call flick() on the object which the overlay is on.
flick("flickstate", src)


The object, and all of its overlays with the "flickstate" state, will be flicked.