ID:167166
Apr 19 2006, 6:10 pm
|
|
Is it possible to flick and overlay ?
|
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. |
In the words of the infamous Lummox JR: "No."