ID:161535
![]() Apr 25 2008, 11:32 pm
|
|
I'm currently making a game right now, and most of it involves many animated movements. I was thinking how to do overlays that also has the same motion. Example: I have a punch animation, I want my shirt overlays to also move like the base... so I make an icon of the shirt having the same motion. Is there any other way than making base icons and base w/ overlay icons for every animation and use flick proc? Thx! - Samehada24 |
Garthor wrote:
In order for this to work, you need to have one icon file for each different piece of equipment. So, you need shirt.dmi, hat.dmi, etc. If you have multiple player icons (that have different proportions and would thus need different equipment icons), then you'll need one file per piece of equipment per body type, which means shirt_small.dmi, shirt_big.dmi, hat_small.dmi, hat_big.dmi, and so on. Hmmm.... thanks for the help. Trying it. |
Aside from possibly reorganizing your files, there's nothing difficult about this. The only thing you need to do is that the object you're adding to the overlays cannot have an icon_state set. If that's the case, then its icon state will automatically match the object they're overlaid on.