πŸ“Scale and Position

who wants to build a skyscraper

Scale

"scale": {
    "x": 5,//how far it will go from position x
    "y": 5//how far it will go from position y
}

Position

circle-info

You can string x and y in Position

"position": {
    "x": 5,
    "y": 5
}

if you want to move by changing position without using physics

You can add + and - things as strings

"position": {
    "x": "+5",
    "y": "-5"
}

if you want to take the top left position;

if you want to move the position to the bottom right;

Last updated