T
Tom Barylov
Guest
Hey Folks!
I have enemies that walk randomly towards my player.
Works just fine. Now I would like them to stay on a 64x64 Grid (18x11).
how do I do that?
thanks!
(alarm code making them move around, randomly towards player):
I have enemies that walk randomly towards my player.
Works just fine. Now I would like them to stay on a 64x64 Grid (18x11).
how do I do that?
thanks!
(alarm code making them move around, randomly towards player):
Code:
newdir=point_direction(x,y,obj_player1.x, obj_player1.y) + irandom_range(-64,64)
speed=4
direction=newdir
alarm[0]= irandom_range(60,150)