Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
This post has been closed. You can still view previous posts, but you can't post any new replies.

Animate Movement

Howdy, and thanks for all the great work! I noticed when pieces are moved by another player / GM, they just sort of "teleport" across the board.  I assume you're just setting the css top and left properties (or something similar).  Instead, it would be nice if you animated the css change (with a nice easing function).  Assuming you've got jQuery (or a similar framework) under the hood, this is a cinch.  While this would result in movement in a straight line that may not actually represent the way the piece moved across the terrain, it is very eye-catching and would give observers a better feel for the action. I've got code that does this; I'd be happy to share it.  I was working on my own virtual tabletop when I stumbled across Roll20 (which is far superior). Cheers!
That sounds cool. Animation along a path would be more awesome.
+1
+1 And regardless whether or not your code is used I want to thank you Michael G. for your attempt to help.
Everything is done via HTML5 Canvas, so this is more like an actual game rendering than manipulating HTML elements. Roll20 actually started out attempting the HTML element approach but browser performance and compatibility was a nightmare.