ID:142153
 
Code:
mob/verb
BigCoffin(mob/M in view(6))
sleep(2)
var/image/a = new ()
var/image/b = new ()
var/image/c = new ()
var/image/d = new()
var/image/e = new()
var/image/f = new()
var/image/g = new()
var/image/h = new()
var/image/i = new()
var/image/j = new()
var/image/k = new()
var/image/l = new()
a.icon='black coffin.dmi'
a.icon_state="10"
a.pixel_x=-32
b.icon='black coffin.dmi'
b.icon_state="11"
c.icon='black coffin.dmi'
c.icon_state="12"
c.pixel_x=32
d.icon='black coffin.dmi'
d.icon_state="7"
d.pixel_x=-32
d.pixel_y=32
e.icon='black coffin.dmi'
e.icon_state="8"
e.pixel_y=32
f.icon='Black coffin.dmi'
f.icon_state="9"
f.pixel_x=32
f.pixel_y=32
g.icon='Black coffin.dmi'
g.icon_state="4"
g.pixel_x=-32
g.pixel_y=64
h.icon='Black coffin.dmi'
h.icon_state="5"
h.pixel_y=64
i.icon='Black coffin.dmi'
i.icon_state="6"
i.pixel_x=32
i.pixel_y=64
j.icon='Black coffin.dmi'
j.icon_state="1"
j.pixel_x=-32
j.pixel_y=96
k.icon='Black coffin.dmi'
k.icon_state="2"
k.pixel_y=96
l.icon='Black coffin.dmi'
l.icon_state="3"
l.pixel_x=32
l.pixel_y=96
M.overlays +=a
M.overlays +=b
M.overlays +=c
M.overlays +=d
M.overlays +=e
M.overlays +=f
M.overlays +=g
M.overlays +=h
M.overlays +=i
M.overlays +=j
M.overlays +=k
M.overlays +=l
sleep(99)
M.overlays--


Problem description:

For some reason the states start like in the middle or at the end. How can I fix it?
I can't really say haven't coded in a while but do you have two different files because yous caps the B in certain places and lower-case in others. I can't really remember if that even made a difference. T.T Just trying to help ^^
In response to Marcmacman
No, that wouldn't effect what I'm talking about.
This is simply how it works internally. You're supposed to use flick() for one-time animations.
Besides, your code is really horrible and needs to be scrapped. >_>
In response to Kaioken
How the hell do you flick an image?
In response to BUProductions
You can't currently flick() images. But why are you even using images in the first place?
In response to Kaioken
Kaioken wrote:
You can't currently flick() images. But why are you even using images in the first place?

I told him to use image in the first topic he showed me(not this one).


Also, good god.


Div, look up new/icon/ (not icon/new...what the heck was i thinking? >_>) in the refrence, and try overlays += list(a,b,c,,,,) to shorten that up.

I also seem to notice that flick() doesn't even work properly for me(not trying to jack your topic :P)

flick( (tempvars[WEAPON] ? "Slash" : "Punch") , src )


When that flick() occurs, it seems to skip at least a frame or 2.
In response to Axerob
mob/verb
BlackCoffin(mob/M in view(6))
M.canmove=0
var/icon/i = new ('smallbox.dmi')
flick("small",i)
M.overlays += i
spawn(39) M.overlays -= i
M.canmove=1


I made a small version of it. The icon doesn't show up. What on earth am I doing wrong? x_x
In response to BUProductions
BUProductions wrote:
> mob/verb
> BlackCoffin(mob/M in view(6))
> M.canmove=0
> var/icon/i = new ('smallbox.dmi')
> flick("small",i)
> M.overlays += i
> spawn(39) M.overlays -= i
> M.canmove=1

I made a small version of it. The icon doesn't show up. What on earth am I doing wrong? x_x


Didn't you just post this in your other thread?
In response to ANiChowy
Wow, great input there.

I took Rob's suggestion and added it to the smaller version.