Okay so my attack works fine, but there is one thing that is bothering me.
I need help making the attack verb start the "clothes" attack animation,
so it's not just the body making the animation.
How can I do this?
@Konlet: That solution is really terrible advice.
1) It won't work for anything that's an overlay, because overlays are immutable. 2) It will generate a bunch of objects that have to be moved on top of the player, which is going to cause all kinds of CPU issues with built-in movement. Stacked objects that move as a unit are a terrible idea except where they can't be avoided. 3) It's a solution that doesn't need to be done because it solves a problem that is created by another problem. It'd be better to fix the first problem than use that workaround. If the icon that is used for clothing has a matching icon state as the flick state, it will also perform the flick. To make the clothes do the attack as well as the body, you need to make sure that the clothing has the exact same icon_state layout as the body's icon. |
I'd suggest using a list.
You don't have to initialize the list right away like that, but for explanatory reasoning I'll do it.
EDIT: Don't do this, I haven't worked with overlays in a long time.