Learn with tiles › 3
Moving
Move Lara right, left, up and down, and make her walk to a place you choose.
1
The move by x (dx) y (dy) tile moves the object by that much from where it is now.
A bigger number in the x slot moves it further to the right. Move Lara 100 to the right.
To do Move Lara 100 to the right.
Loading tiles…
2
The y slot is for up and down. A bigger number moves it up.
To go the other way, put - in front of the number. x -100 is 100 to the left, and y -50 is 50 down.
Move Lara 100 to the right and 80 up.
To do Move Lara 100 to the right and 80 up.
Loading tiles…
3
Every place on the scene has a position number. The very middle is x 0, y 0. x gets bigger as you go right, and y gets bigger as you go up.
The move to (x), (y) ((time) s) tile goes to that position, wherever the object is now. The last slot is how long it takes. With 1, the object walks there in 1 second.
Send Lara to the position x 200, y 0.
To do Make Lara go to the position x 200, y 0.
Loading tiles…