ID:155412
 
How can I make it so I can move with my arrow keys on my pokemon(which I send out). I examined a few sources and they only have the CLICK to move code. Can someone help me out? ty. Oh and how can I make random pokemon(npc's I guess) come towards me or move around. (Not using walk_rand(src,7)because it escapes from the pokeball -.-)
you could try by Move()proc which will be:
mob
client
North()
if(mob.SentOut)
for(var/mob/Pokemon/P in mob.Pokemon)
if(P.SentOut)
step(P,NORTH)
else
..()
East()
if(mob.SentOut)
for(var/mob/Pokemon/P in mob.Pokemon)
if(P.SentOut)
step(P,EAST)
else
..()
South()
if(mob.SentOut)
for(var/mob/Pokemon/P in mob.Pokemon)
if(P.SentOut)
step(P,SOUTH)
else
..()
West()
if(mob.SentOut)
for(var/mob/Pokemon/P in mob.Pokemon)
if(P.SentOut)
step(P,WEST)
else
..()

and for the second one you can use step_rand(mob)