who know the code
+my monster only move in tile "walkable" , not in "wall"
+And how make it dont go near wall ?
i saw in tibia
i had local x
1
x = x*32+16
Scripts
Image Move
Image Move
1

x = x*32+16
x = x*32+16 y = y*32+16
monster={}
monster.x=0
monster.y=0
monster.x,monster.y=move_towards(monster,90,32)[1],move_towards(90)[2]
print(monster.x.." "..monster.y)
function move_towards(array,angle,speed)
	if angle < -90 then
		angle=angle+360
	end
	angle_to=math.rad(math.abs(angle + 90))-math.pi
	t_temp={array.x+math.cos(angle_to)*speed,array.x+math.sin(angle_to)*speed}
	return t_temp
end
Re: Image Movemonstertilex = math.floor(monsterx / 32) monstertiley = math.floor(monstery / 32)
. x = x*32+16 then Monster x = x
1
