CODE
if random(20) < 1
direction += 90;
if random(20) < 1
direction -= 90;
if random(20) < 1
speed = 0;
if random(20) < 1
speed = 1;
direction += 90;
if random(20) < 1
direction -= 90;
if random(20) < 1
speed = 0;
if random(20) < 1
speed = 1;
Thats my random movement script, I was wondering if there was a way to make it smoother, because at the moment they turn way too fast, they literally flash to the next direction, and they change direction far too often.
I was also wondering how I can stop the zombies and humans overlapping each other, I have found a simple method but it makes them spaz all over the place and start shaking so if there was an alternative or a suggestion I would be happy
Thanks in advance, i'm still learning.