osb/doc/lua/objectanimator.md

20 lines
490 B
Markdown
Raw Permalink Normal View History

2023-06-20 04:33:09 +00:00
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.