ID:164689
 
Well, i know how to do shooting based on a mob's direction but how would you go about making an obj walk quickly towards where a player clicked on his screen?

I'd greatly appreciate either the code or some help as to how to do this.
Look up walk_to in the referance.
In response to Revojake
Can do, looking into it.
In response to Darkdemonrad
obj/Bullet
icon = 'bullet.dmi'

atom/Click()
var/obj/Bullet/B = new(usr)
walk_to(B,src,0,1)

hrm, it works but i dislike the way the bullet travels i'mma modify that looping it and using step_towards()

thanks though revojake :-)
In response to Darkdemonrad
atom/Click()
var/obj/Bullet/B = new(usr)
while(B.loc <> src.loc)
sleep(1)
step_towards(B,src)


ew, it does the same thing draw two straight lines as opposed to finding a diagnol medium geeze i wanna fix this problem. any advice?
In response to Darkdemonrad
You could use pixel movements for the projectile, there is a library(maybe demo) called "Pixel Projectiles" You may be able to use that or learn what you need from it.

-KirbyAllStar
In response to KirbyAllStar
Sigh, it's byond scape subscription based and i didn't DL it during the month subscription wizzy gave me. Any other advice?
In response to Darkdemonrad
look up Real Time Line effects in the libraries. looks like that might help.