Pushable box region?

Ask and answer questions about making games and related topics. Unrelated topics go in that other forum.

Moderators: marionline, SDHawk

Post Reply
User avatar
sheamkennedy
Liquid Metal Slime
Posts: 1110
Joined: Mon Sep 16, 2013 9:29 pm
Location: Tama-shi, Tokyo, Japan
Contact:

Pushable box region?

Post by sheamkennedy »

I have pushable boxes which I'd like to keep to a contained area in order to avoid the player pushing them somewhere that they shouldn't be. How can I make sort of a wall which only stops the boxes?
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
User avatar
FnrrfYgmSchnish
Metal Slime
Posts: 741
Joined: Thu Jun 18, 2009 4:37 am
Location: Middle of Nowhere

Post by FnrrfYgmSchnish »

Zones. In the NPC data for the box, you'll see two options at the bottom of the list: "movement zone" (use this if you want it to only be pushable in a certain area) and "avoidance zone" (use this one if you want it to be pushable anywhere EXCEPT specific spots.)

Set one of those to something other than "none."

Then go into "edit zones" and place some tiles of whichever zone number you chose for the box's movement/avoidance zone.
FYS:AHS -- Working on Yagziknian NPC walkabout sprites
User avatar
sheamkennedy
Liquid Metal Slime
Posts: 1110
Joined: Mon Sep 16, 2013 9:29 pm
Location: Tama-shi, Tokyo, Japan
Contact:

Post by sheamkennedy »

Thanks, works great!
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
Post Reply