Making dot move around

BlitzMax Forums/BlitzMax Programming/Making dot move around

Hi. I am trying to make an ant that will pile up items. I first need him to walk around. I've tried generating a random number between -1 and 1 so that he moves in different directions but of course this just leaves me with an ant that looks as though hes having muscle spasms.

Any ideas how i would get him to randomly walk around the screen?