ID:171776
Aug 10 2004, 7:47 pm
|
|
I'm using offset overlays for a multi-tile mob effect. Now, I was wondering, How would I flick() icon_states of the overlay? Like for a jump procedure, How would I flick all of the overlays of the individual mob with a "jump" state(the mob is 64x64 or 4 tiles)?
|
Aug 10 2004, 7:51 pm
|
|
Changing the icon_state of the mob will change the icon_states of all the overlays.
|
In response to Garthor
|
|
Yes, but the iconstate is different for the overlays, then is it for the mob itself.. Say I want to change the iconstates for the jump proc, for the mob I want to flick the icon_state "J0,0" for the overlay pixel_y+32 the icon_state = "J0,1", etc. so how would I change the overlays icon_states individually.
|
In response to Troglodyte
|
|
Troglodyte wrote:
so how would I change the overlays icon_states individually. You can't. What you need to do is set a variable to the overlay, remove it from the list while adding another with the appropriate icon, then after X amount of time remove the new one and put the old one back in. mob You could do something like that to get all of the extra object parts to change icon states along with the main object part. It would look nicer if you used the idea there to make an overlay_flick function of your own, and you should be able to do so if you understand the concept behind this. |
In response to Garthor
|
|
That only works if the overlay's icon and icon_state are the same as their location object.
|