ID:2284663
 
(See the best response by Lummox JR.)
Hello, I have a 256x256 barrier obj that appears ontop of the player. How would I make it so that nothing can get in or out. I was thinking of spawning dense turfs or objects around what the perimeter would be, but I thought that there would be an easier way. I have tried bound_width and bound_height to no success.
Best response
Without pixel movement, basically you'd want to override Enter() and Exit() for the turfs involved. (More specifically, you'd probably just want to have all turfs use the same procs, and check for a barrier and whether the movable would be entering/leaving that barrier.)

With pixel movement, Cross() and Uncross() are the things to use. However, Uncross() only applies to cases when a movable will be stepping out of bounds completely, not when it's stepping partially out. So you might want one obj that's the outer barrier and disallows Cross(), and another slightly smaller one that's the inner barrier and disallows Uncross().