ID:1305254
 
(See the best response by NNAAAAHH.)
Code:world
view="31x21"
fps = 15
mob
step_size = 8
obj
step_size = 8</b>

mob/proc
FireBall()
if(usr)
frozen=1
icon_state="katon"
var/obj/Fire/gfirelvl1a/K = new()
var/obj/Fire/gfirelvl1b/L = new()
K.Fireowner=usr
L.Fireowner=usr

if(usr.dir==EAST)
if(K)
K.loc=usr.loc
K.dir=usr.dir
// K.x+=1
if(L)
L.loc=usr.loc
L.dir=usr.dir
L.x+=1


Problem description:

i'm using step size and fps

when i take it out the fireball works 100% because its tile by tile i am gussing this is the only move so far not working

happens all ways not just east and if i take like a step. it may end up below me or tip on me or above or the head of the fireball on me or behind me etc etc.

Best response
what i understand by that is make the step_x/y the same as mine or no?
            if(usr.dir==EAST)
if(K)
K.dir=usr.dir
var nx = usr.step_x, ny = usr.step_y
K.loc=usr.loc
K.step_x = nx
K.step_y = ny
if(L)
var nx = usr.step_x, ny = usr.step_y
L.loc = usr.loc
L.step_x = nx
L.step_y = ny
L.loc=usr.loc
L.dir=usr.dir
L.x+=1




this made it work thank you for the link
In response to DistantWorld101
You should thank the person that provided that answer, but you're welcome. It's not a problem.