ID:178392
 
how would i make it so the weapon flashes in front of the src but on a different tile... so the icon becomes 2 squares long with flick... would i add something in to the flick....?
this is the flick i have now
flick("attack",src)
how would i make it so the weapon flashes in front of the src but on a different tile... so the icon becomes 2 squares long with flick... would i add something in to the flick....?
this is the flick i have now
flick("attack",src)

I think flick has to be applied to an object, but you could get around this by creating an invisible weapon object and flicking over it as needed, like so (warning: untested code):

mob/player
var/obj/weapon_anim

New()
. = ..()
weapon_anim = new()
weapon_anim.icon = 'weapon.dmi'
weapon_anim.icon_state = ""
weapon_anim.animate_movement = 0

verb/attack(M as mob in orange(1))
usr.dir = get_dir(usr, M)
weapon_anim.loc = get_step(usr, usr.dir)
flick("attack", weapon_anim)

Move()
. = ..()
if(.) weapon_anim.loc = null //Move the weapon_anim
//object off the map when the player moves
Look up Rcets Flick demo that he made for me. You'll have to modify it a little but it will work.