Megaquarium

Megaquarium

What will you create?
Access an ocean of content for Megaquarium created by players like you. New animals, decorations, tanks and more are available to expand your game and tailor it to your liking.
Learn More
Custom tank
I am currently trying to make a custom tank for my mod but I can't seem to figure out these following lines
"removeRow":1,
"removeColumn":1,
if you can explain how they work I would appreciate it a lot.
< >
Showing 1-2 of 2 comments
Twice Circled  [developer] 3 8 Aug, 2022 @ 6:54am 
(Away from my desk just now so might get some of the names wrong.)

The multisize behaviour is what allows objects to be "dragged" out to different sizes.

In the "map" you define the max size version of the object, always start with that and set the minSize in the multisize behaviour to the same as the maxSize. This makes it a fixed size object.

Once this is working as intended, you can define how the object shrinks at smaller sizes.

So for example, first set the minSize just 1 less than the maxSize.

removeColumn tells it which column of your "map" to remove as the object shrinks in the x direction.

This is relative to the "o" which is the "origin" of your map coordinate system.

For complex objects you will want to use removeColumns which takes a series of numbers to remove different columns each time. Like: 3,7,4,2.

Look at and try modding some examples from the base game to get a feel for how it works. Hope that helps. :]
Triggered Cat 52 8 Aug, 2022 @ 6:56am 
Originally posted by Twice Circled:
(Away from my desk just now so might get some of the names wrong.)

The multisize behaviour is what allows objects to be "dragged" out to different sizes.

In the "map" you define the max size version of the object, always start with that and set the minSize in the multisize behaviour to the same as the maxSize. This makes it a fixed size object.

Once this is working as intended, you can define how the object shrinks at smaller sizes.

So for example, first set the minSize just 1 less than the maxSize.

removeColumn tells it which column of your "map" to remove as the object shrinks in the x direction.

This is relative to the "o" which is the "origin" of your map coordinate system.

For complex objects you will want to use removeColumns which takes a series of numbers to remove different columns each time. Like: 3,7,4,2.

Look at and try modding some examples from the base game to get a feel for how it works. Hope that helps. :]
Thank you!
< >
Showing 1-2 of 2 comments
Per page: 1530 50