ID:147358
 
The following code snippet shows the tested mob charging up as an animation flick, then changes the icon state altogether. It oes start walking, however, it doesn't stop. Can anyone tell me why?
spindash()
flick("spindash1",usr)
usr.icon_state = "spindash2"
spawn(10)
walk(src,EAST)
sleep(5)
walk(src,0)
You need to use walk(Ref,0) to tell something to stop walk()ing once it starts.
In response to Foomer
Foomer wrote:
You need to use walk(Ref,0) to tell something to stop walk()ing once it starts.

isn't that what I did? The last line of code shows
walk(src,0)
Delita12345 wrote:
> spindash()
> flick("spindash1",usr)
> usr.icon_state = "spindash2"
> spawn(10)
> walk(src,EAST)
> sleep(5)
> walk(src,0)
>


Change the spawn(10) to sleep(10), or indent everything under it one more level so that the rest of the proc is spawned instead of just the following line.