ID:966293
 
Keywords: board, mob, size
(See the best response by Kaiochao.)
Code:


Problem description:

My doubt doesn't involve amount of pixels a mob holds, but the amount of tiles it occupies. The engine provides any easy way of managing that? Or I would have to elaborate an extensive code to give the players the impression/illusion that a certain mob is actually above four tiles due to his size?

My objective is to make a board game that will require that all units on the match have at least 16 adjacent positions, which would be easily achieved if the units occupied 4 spaces instead of a single one. Since I'm only starting to learn the language, I guess it would help a lot asking in advance.

Thanks for the attention!
Best response
You can simply change the size of the bounding box of the objects. A warning, though: changing it to anything other than a multiple of world.icon_size will activate pixel-movement mode, which disables tile-to-tile gliding animations.
mob/big
bound_width = 2 * 32 // 2 tiles horizontally
bound_height = 2 * 32 // 2 tiles vertically


And here's an undocumented shortcut:
mob/big/bounds = "64,64"


And to check what tiles an object is occupying, you use the locs list.