# Defold 1.2.151 has been released

**URL:** <https://forum.defold.com/t/defold-1-2-151-has-been-released/49385>\
**Category:** Release notes\
**Created:** [April 15, 2019, 9:34am UTC](https://forum.defold.com/t/defold-1-2-151-has-been-released/49385 "2019-04-15T09:34:08Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Pkeod](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pkeod/32/606_2.png) [@Pkeod](https://forum.defold.com/u/Pkeod)\
**Post date:** [April 15, 2019, 12:57pm UTC](https://forum.defold.com/t/defold-1-2-151-has-been-released/49385/7 "2019-04-15T12:57:25Z")

</div>

> [@Mathias\_Westerdahl](#):
>
> In this release we’ve added support for controlling flipbook animations using a `cursor` property on sprites.

How does this work? I tried setting cursor property values but nothing changes.

playback\_rate does seem to work fine.

```lua
function init(self)
	local num = math.random(30)
	print(num)
	go.set("#sprite", "playback_rate",math.random(num))
end

```

Got it working

```lua
function init(self)
	local num = math.random(30) / 30
	print(num)
	sprite.play_flipbook("#sprite", "spin", nil, {offset = num})
end

```

Has to be a value between 0-1? And has to be used on play\_flipbook also it’s called offset not cursor. playback\_rate can be set here too.

This is awesome! Really useful for spawning things on the same frame and giving them some random variation in animations. 🙂

---

_[View the full topic](https://forum.defold.com/t/defold-1-2-151-has-been-released/49385)._
