Unfortunately, I am ambitious and want to add some other things that I will have to sit down and really think about. Like, for example, there's a teddy bear object in the game. So I want to check if the user drops the teddy bear, and if so, did they drop it within a 4 tile distance from a slime? If so, the slime will stop having a target, go into a peaceful mode, and basically glob on top of the bear, deleting the item and updating the slime's icon_state to have the teddy bear like embedded into its body.
That's still going to be massively laggy, you're still running an infinite loop for every monster in your world the entire time they exist.
Don't forget to pass src to view() as the center, since it defaults to usr. And usr is trash.
Page: 1 2