Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/doc/lua/objectanimator.md
blob: 1c09866399e28d9facb04bb1e4e24a9605fcadc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
The objectAnimator table contains bindings available to client-side animation scripts for objects.

---

#### `Json` objectAnimator.getParameter(`String` parameter, `Json` default)

Returns the value for the specified object parameter. If there is no value set, returns the default.

---

#### `int` objectAnimator.direction()

Returns the object's facing direction. This will be 1 for right or -1 for left.

---

#### `Vec2F` objectAnimator.position()

Returns the object's tile position.