flick("attack","ray2")
flick("attack","ray3")
flick("attack","ray4")
flick("attack",usr)
Ray 2 3 and 4 are the overlays i really need help any help would be much apreciated.
ID:160616
Aug 12 2008, 3:25 am
|
|
I have a mutli tiled usr made with overlays it is 64x64 i needed to do icon states for shooting i did but it only changed the one that is the actual usr and not the overlays this is the part in my code.
flick("attack","ray2") Ray 2 3 and 4 are the overlays i really need help any help would be much apreciated. |
Aug 12 2008, 5:25 am
|
|
flick() doesn't take text arguments. Why the heck would you try and change a text strings (nonexistant) icon? I'm not sure, but you could try flicking everything in the players overlays (might not work because of how overlays work) or you could dynamically add and remove overlays.
|
It'd probably be easier to put all 4 of your icons into one icon, then place it in your game, then the entire 64x64 icon would be the player. Then simply have your other icon_states like shooting in that icon file and it'd save you a lot of trouble.
|
In response to Jeff8500
|
|
Oh ok. How would i go about making everything on the usrs overlay do it?
|
In response to Setox
|
|
Look up the for() proc. Like I said, this probably won't work.
|
In response to Michael3131
|
|
But you cant have transparency in a image can you?
|
In response to Setox
|
|
No, you can. You just need a program, such as GIMP, that supports it.
|
When an atom is flick()ed with an icon_state, if it has overlays/underlays, all of them are automatically flicked with the same state in their respective icon file... so all you need is to flick() the actual player mob once, and it should work if things has been set up correctly.
|