proc
Walk()
walk_rand(src,5,8)
..()
Slime
icon = 'Slime.dmi'
icon_state = ""
hp = 10
def = 0
density = 1
New()
.=..()
src.Walk()
Problem description: The slime walks around but only in one direction until it hits something, and then changes direction and continues that way until it hits something again, etc.
What I expect is for the direction of the walk_rand to keep changing values per step. So the slime would move north one step, and randomly move another direction for a step, and then another and another.
Am I doing something wrong? Should I use step_rand instead?
Thanks in advance.
Yes, though. It seems like the better idea to use step_rand()
How are you calling Walk()?