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 .
×
Create a free account

Can a macro/API move a token with move animation the players can see?

I have a similar need to the one discussed in this topic: <a href="https://app.roll20.net/forum/post/2952807/token-move-animation" rel="nofollow">https://app.roll20.net/forum/post/2952807/token-move-animation</a> In their words: Is t here any way to make a token "slide" from one position to another using a macro/API? What I want to achieve&nbsp;is to move a token from one X,Y location to another, and let players see the movement, not just make it appear in one position&nbsp; from &nbsp;another. This conversation has been archived and it looks like the solution (the 'slide token' API) is no longer available, can anyone suggest a current alternative? Or a way to get hold of the old script, as long as it would still work obviously.
1590074333
Dumbhuman
Pro
Marketplace Creator
TokenMod can do this in a simple way.&nbsp; For instance, if you had the token selected first, you could run: !token-mod {{ --set --top#+3u --left#+7u }} And it would show the token sliding from its starting position in a straight diagonal line to an ending position that's 3 grid units south and 7 grid units east.&nbsp; If you wanted to be able to do that without selecting the token and having the movement broken up so that it goes east first before it goes south, you could use a couple of commands in succession like these: !token-mod {{ --ids -sto82ZusoidumweoirufFiosiu20e8 --ignore-selected --set --left#+7u }} !token-mod {{ --ids -sto82ZusoidumweoirufFiosiu20e8 --ignore-selected --set --top#+3u }} If you need something a lot more robust than that, this Patrol script might satisfy the need.
I tried that but it just jumps from one position to the next rather than actually animating the movement between them
1590075931
Dumbhuman
Pro
Marketplace Creator
lark86 said: I tried that but it just jumps from one position to the next rather than actually animating the movement between them Using the TokenMod method does animate the movement between positions (the token doesn't just disappear from the start position and appear at the end position), but I guess it traverses the distance between points too quickly for your idea.&nbsp; Check out the Patrol script I linked to then.
KC . said: lark86 said: I tried that but it just jumps from one position to the next rather than actually animating the movement between them Using the TokenMod method does animate the movement between positions (the token doesn't just disappear from the start position and appear at the end position), but I guess it traverses the distance between points too quickly for your idea.&nbsp; Check out the Patrol script I linked to then. thanks man, awesome