📐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

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;

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

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

"position": {
    "x": Engine_canvas.width-//x of the scale you set,
    "y": Engine_canvas.height-//y of the scale you set,
}

Last updated