ID:270978
 
I want to create that effect that when a client i.e. steps to the west, he keeps walking to the west untill he steps into an other direction. Think about a bicycle with this, you keep riding into one direction untill you steer into another direction. But I don't really have a clue on how to do this. I tried putting client.[random direction]() in client/Move(), but I realised that is an infinite loop.

So, can steer me into the right direction?

O-matic
I believe you want... walk() :O!!!
client/Move(loc,dir)  //called when user presses a direction
walk(mob,dir,3) //moves the client's mob in the direction pressed with lagtime of 3 ticks


Note I did not called the parent proc... reason: didn't felt like to >_>
- GhostAnime
In response to GhostAnime
Not a good idea not to. I expect more from you!

*runs away sobbing* XD
In response to GhostAnime
GhostAnime wrote:
I believe you want... walk() :O!!!

Sometimes, when things seem so difficult, they turn out to be extremely simple. Totally forgot about walk(), thanks.

O-matic