Quantcast
Channel: jacobalbano.com » glide
Viewing all articles
Browse latest Browse all 3

Glide update: From()

$
0
0

I made a small addition to Glide, my tweening library for C#. You can now specify starting positions for the variables you’re tweening, useful for when you need to change a variable instantly and then tween back to the default value. I use this when I’m making things flash for alerts or other important things for the player to notice.

tweener.Tween(sprite, new { Scale = 1 }, 1)
    .From(new { Scale = 1.5f });

Obviously you could just set the values manually before telling them to tween, but this is a nice shortcut if you’re setting a lot of them at once.

You can download Glide here.


Viewing all articles
Browse latest Browse all 3

Trending Articles