API Reference › Tiled › Tiled.draw_anim
method

Tiled.draw_anim

Tiled.draw_anim(map, camx: int, camy: int, frame: int) -> void

Like Tiled.draw, but animated tiles are advanced to the engine frame (pass Time.frame) and every tile object on the object layers is drawn too. The animation frame is a pure function of the fixed 60/s clock, so it reproduces frame-for-frame across runs and lockstep replays.

← All symbols