I have this code:
obj
proc
projectile(obj/projectile,var/dir,var/delay)
walk(projectile,dir)
sleep(delay)
del(projectile)
obj
Laser
icon = 'laser.dmi'
icon_state = ""
layer = MOB_LAYER + 99
Bump(A)
if(ismob(A))
var/mob/M = A
if(!M.npp&&!M.npc)
M.Health -= ((3500 * usr.Str)/M.Def)
if(isturf(A))
var/turf/T = A
if(T.dif == 0)
step(src,src.dir)
else
del(src)
else
step(src,src.dir)
Move()
var/obj/T = new /obj/Lasertail (src)
T.player = "[usr]"
walk(src,src.dir)
Del(src)
for(var/obj/Lasertail/T in world)
del(T)
del(src)
obj
Lasertail
icon = 'laser.dmi'
icon_state = "tail"
layer = MOB_LAYER + 99
<dm>
This is for my Laser fighting game!
When I try to play my game, it goes fien until I fire. When I fire the thing doesn't move, and then I get millions of errors, and the game shuts down.
Please help!
~GokuSS4Neo~
Lummox JR